Example #1
0
        @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();
        }
Example #2
0
 private static boolean isIndexable(FileType fileType) {
   return fileType instanceof LanguageFileType
       || fileType instanceof CustomSyntaxTableFileType
       || IdTableBuilding.isIdIndexerRegistered(fileType)
       || CacheBuilderRegistry.getInstance().getCacheBuilder(fileType) != null;
 }