boolean (@NotNull HighlighterIterator iterator, @NotNull CharSequence text, @NotNull FileType fileType) { IElementType tokenType = iterator.getTokenType(); PairedBraceMatcher matcher = getPairedBraceMatcher(tokenType); if (matcher != null) { BracePair[] pairs = matcher.getPairs(); for (BracePair pair : pairs) { if ((pair.getLeftBraceType() == tokenType || pair.getRightBraceType() == tokenType) && pair.isStructural()) return true; } } return isXmlStructuralBrace(tokenType); }