@Nullable
  private static BraceMatcher getBraceMatcherByFileType(@NotNull FileType fileType) {
    BraceMatcher matcher = FileTypeBraceMatcher.getInstance().forFileType(fileType);
    if (matcher != null) return matcher;

    if (fileType instanceof AbstractFileType) {
      SyntaxTable table = ((AbstractFileType)fileType).getSyntaxTable();
      if (table.isHasBraces() || table.isHasBrackets() || table.isHasParens()) {
        return CustomFileTypeBraceMatcher.INSTANCE;
      }
    }

    return null;
  }
@Nullable
  private static BraceMatcher getBraceMatcherByFileType(@NotNull FileType fileType)