public static @Nullable DataIndexer<TodoIndexEntry, Integer, FileContent> getTodoIndexer(FileType fileType) {
    final DataIndexer<TodoIndexEntry, Integer, FileContent> extIndexer = TodoIndexers.INSTANCE.forFileType(fileType);
    if (extIndexer != null) {
      return extIndexer;
    }

    if (fileType instanceof LanguageFileType) {
      final Language lang = ((LanguageFileType)fileType).getLanguage();
      final ParserDefinition parserDef = LanguageParserDefinitions.INSTANCE.forLanguage(lang);
      final TokenSet commentTokens = parserDef != null ? parserDef.getCommentTokens() : null;
      if (commentTokens != null) {
        return new TokenSetTodoIndexer(commentTokens);
      }
    }

    return fileType instanceof CustomSyntaxTableFileType ? GENERAL_TODO_LISTENER : null;
  }
public static @Nullable DataIndexer<TodoIndexEntry, Integer, FileContent> getTodoIndexer(FileType fileType)