void (@NotNull CharSequence fileText, @NotNull Processor<? super WordOccurrence> processor) { DefaultWordsScanner delegate = myDelegate; if (delegate == null) { myDelegate = delegate = new DefaultWordsScanner(new PythonLexer(), TokenSet.create(PyTokenTypes.IDENTIFIER), TokenSet.create(PyTokenTypes.END_OF_LINE_COMMENT), PyTokenTypes.STRING_NODES); } delegate.processWords(fileText, processor); }