if (tokenType == ErlangTypes.ERL_ATOM_NAME || tokenType == ErlangTypes.ERL_VAR) {
int tokenStart = lexer.getTokenStart();
for (TextRange wordRange : StringUtil.getWordIndicesIn(lexer.getTokenText())) {
int start = tokenStart + wordRange.getStartOffset();
int end = tokenStart + wordRange.getEndOffset();
processor.process(new WordOccurrence(fileText, start, end, WordOccurrence.Kind.CODE));
}
}
lexer.advance();
}
}