void (@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(); } }