@Override
  public boolean bracesAreInTheSameElement(@NotNull PsiFile file, @NotNull Editor editor, int lBraceOffset, int rBraceOffset) {
    final HighlighterIterator it = createBeforeIterator(editor, lBraceOffset + 1);
    while(!it.atEnd() && it.getStart() < rBraceOffset) {
      it.advance();
      if (!it.atEnd() && it.getStart() == rBraceOffset) {
        return false;
      }
    }
    return true;
  }
@Override
  public boolean bracesAreInTheSameElement(@NotNull PsiFile file, @NotNull Editor editor, int lBraceOffset, int rBraceOffset)