private final VirtualFile myFile;
public TokenSetTodoIndexer(@Nullable final TokenSet commentTokens, @NotNull final VirtualFile file) {
myCommentTokens = commentTokens;
myFile = file;
}
<BUG>public void map(final FileBasedIndex.FileContent inputData, final IndexDataConsumer<TodoIndexEntry, Integer> consumer) {
final CharSequence chars = inputData.content;</BUG>
if (IdCacheUtil.getIndexPatternCount() > 0) {
final TodoOccurrenceConsumer occurrenceConsumer = new TodoOccurrenceConsumer();
final EditorHighlighter highlighter = HighlighterFactory.createHighlighter(null, myFile);

private final VirtualFile myFile;
public TokenSetTodoIndexer(@Nullable final TokenSet commentTokens, @NotNull final VirtualFile file) {
myCommentTokens = commentTokens;
myFile = file;
}
public Map<TodoIndexEntry,Integer> map(final FileBasedIndex.FileContent inputData) {
final CharSequence chars = inputData.content;
if (IdCacheUtil.getIndexPatternCount() > 0) {
final TodoOccurrenceConsumer occurrenceConsumer = new TodoOccurrenceConsumer();
final EditorHighlighter highlighter = HighlighterFactory.createHighlighter(null, myFile);
