private static boolean isBraceToken(@NotNull HighlighterIterator iterator,
                                      @NotNull CharSequence fileText,
                                      @NotNull FileType fileType,
                                      boolean searchingForRight) {
    return searchingForRight ? isRBraceToken(iterator, fileText, fileType)
                             : isLBraceToken(iterator, fileText, fileType);
  }
private static boolean isBraceToken(@NotNull HighlighterIterator iterator,
                                      @NotNull CharSequence fileText,
                                      @NotNull FileType fileType,
                                      boolean searchingForRight)