private static Language getBraceType(HighlighterIterator iterator) {
    final IElementType type = iterator.getTokenType();
    return type.getLanguage();
  }
private static Language getBraceType(HighlighterIterator iterator)