IElementType (@NotNull final IElementType type) { final BracePair[] pairs = myMatcher.getPairs(); for (BracePair pair : pairs) { if (type == pair.getRightBraceType()) return pair.getLeftBraceType(); if (type == pair.getLeftBraceType()) return pair.getRightBraceType(); } return null; }