@Override @NotNull public Map<IdIndexEntry, Integer> map(final FileContent inputData) { final FileTypeIdIndexer indexer = IdTableBuilding.getFileTypeIndexer(inputData.getFileType()); if (indexer != null) { return indexer.map(inputData); } return Collections.emptyMap(); }
private static boolean isIndexable(FileType fileType) { return fileType instanceof LanguageFileType || fileType instanceof CustomSyntaxTableFileType || IdTableBuilding.isIdIndexerRegistered(fileType) || CacheBuilderRegistry.getInstance().getCacheBuilder(fileType) != null; }