@Override
  public @NotNull Collection<? extends IndexableSetOrigin> getOrigins(@NotNull Collection<VirtualFile> files) {
    if (files.isEmpty()) return Collections.emptyList();
    OriginClassifier classifier = OriginClassifier.classify(project, files);
    Collection<IndexableFilesIterator> iterators =
      EntityIndexingServiceEx.getInstanceEx().createIteratorsForOrigins(project, classifier.entityStorage, classifier.myEntityPointers,
                                                                        classifier.sdks, classifier.libraryIds,
                                                                        classifier.filesFromAdditionalLibraryRootsProviders,
                                                                        classifier.filesFromIndexableSetContributors);
    return ContainerUtil.map(iterators, iterator -> iterator.getOrigin());
  }
@Override
  public @NotNull Collection<? extends IndexableSetOrigin> getOrigins(@NotNull Collection<VirtualFile> files)