@Override
  public @NotNull Map<IdIndexEntry, Integer> map(@NotNull FileContent inputData) {
    VirtualFile file = inputData.getFile();
    FileType fileType = file.getFileType();
    if (fileType.equals(JavaClassFileType.INSTANCE) && isEnabled) {
      Map<IdIndexEntry, Integer> idEntries = calculateIdEntriesParsingConstantPool(inputData);
      if (idEntries != null) return idEntries;
      return Map.of();
    }
    // we are skipping indexing of sources in libraries (we are going to index only the compiled library classes)
    if (isEnabled || JavaFileElementType.isInSourceContent(file)) {
      IdDataConsumer consumer = new IdDataConsumer();
      scanContentWithCheckCanceled(inputData, createIndexingLexer(new OccurrenceConsumer(consumer, false)));
      return consumer.getResult();
    }
    return Map.of();
  }
@Override
  public @NotNull Map<IdIndexEntry, Integer> map(@NotNull FileContent inputData)