public static @NotNull Map<IdIndexEntry, Integer> calcIdEntries(@NotNull FileContent content,
                                                                  @NotNull IdAndToDoScannerBasedOnFilterLexer indexer) {
    boolean needIdIndex = IdTableBuilding.getFileTypeIndexer(content.getFileType()) instanceof LexingIdIndexer;
    if (!needIdIndex) return Collections.emptyMap();
    IdDataConsumer consumer = new IdDataConsumer();
    scanContentWithCheckCanceled(content, indexer.createLexer(new OccurrenceConsumer(consumer, false)));
    return consumer.getResult();
  }
public static @NotNull Map<IdIndexEntry, Integer> calcIdEntries(@NotNull FileContent content,
                                                                  @NotNull IdAndToDoScannerBasedOnFilterLexer indexer)