package com.intellij.psi.impl.cache.index;
<BUG>import com.intellij.lexer.Lexer;
import com.intellij.util.indexing.FileBasedIndex;
import com.intellij.util.indexing.IndexDataConsumer;
public abstract class LexerBasedIdIndexer extends FileTypeIdIndexer {
public final void map(final FileBasedIndex.FileContent inputData, final IndexDataConsumer<IdIndexEntry, Integer> consumer) {
final Lexer lexer = createLexer(consumer);
final CharSequence chars = inputData.content;</BUG>
lexer.start(chars, 0, chars.length(),0);

package com.intellij.psi.impl.cache.index;
import com.intellij.lexer.Lexer;
import com.intellij.psi.impl.cache.impl.idCache.BaseFilterLexer;
import com.intellij.psi.search.IndexPattern;
import com.intellij.util.indexing.FileBasedIndex;
import com.intellij.util.indexing.IdDataConsumer;
import java.util.Map;
public abstract class LexerBasedIdIndexer extends FileTypeIdIndexer {
public final Map<IdIndexEntry,Integer> map(final FileBasedIndex.FileContent inputData) {
final IdDataConsumer consumer = new IdDataConsumer();
final Lexer lexer = createLexer(new OccurrenceToIdDataConsumerAdapter(consumer));
final CharSequence chars = inputData.content;
lexer.start(chars, 0, chars.length(),0);
