if (kind == WordOccurrence.Kind.COMMENTS) return UsageSearchContext.IN_COMMENTS;
if (kind == WordOccurrence.Kind.LITERALS) return UsageSearchContext.IN_STRINGS;
if (kind == WordOccurrence.Kind.FOREIGN_LANGUAGE) return UsageSearchContext.IN_FOREIGN_LANGUAGES;
return 0;
}
<BUG>});
}</BUG>
}
private static class TokenSetTodoIndexer implements DataIndexer<TodoIndexEntry, Integer, FileBasedIndex.FileContent>{
@NotNull private final TokenSet myCommentTokens;

if (kind == WordOccurrence.Kind.COMMENTS) return UsageSearchContext.IN_COMMENTS;
if (kind == WordOccurrence.Kind.LITERALS) return UsageSearchContext.IN_STRINGS;
if (kind == WordOccurrence.Kind.FOREIGN_LANGUAGE) return UsageSearchContext.IN_FOREIGN_LANGUAGES;
return 0;
}
});
return consumer.getResult();
}
}
private static class TokenSetTodoIndexer implements DataIndexer<TodoIndexEntry, Integer, FileBasedIndex.FileContent>{
@NotNull private final TokenSet myCommentTokens;
