@ApiStatus.Internal
  public static void scanContentWithCheckCanceled(@NotNull FileContent content, @NotNull Lexer filterLexer) {
    filterLexer.start(content.getContentAsText());
    int tokenIdx = 0;
    while (filterLexer.getTokenType() != null) {
      if (tokenIdx++ % 100 == 0) {
        ProgressManager.checkCanceled();
      }
      filterLexer.advance();
    }
  }
@ApiStatus.Internal
  public static void scanContentWithCheckCanceled(@NotNull FileContent content, @NotNull Lexer filterLexer)