Here's a simple XML schema:
Here's a simple corresponding XML file
However, the "test" element shows up in red and the error is "Element test is not allowed here". However, it is allowed there by the substitutionGroup. Is there something wrong with my XML schema, or is this a bug in IDEA?