private static @NotNull Set<VirtualFile> getVirtualFilesByNames(@NotNull Set<String> names,
                                                                  @NotNull GlobalSearchScope scope,
                                                                  @Nullable IdFilter filter) {
    Set<VirtualFile> files = CollectionFactory.createSmallMemoryFootprintSet();
    FileBasedIndex.getInstance().processFilesContainingAnyKey(NAME, names, scope, filter, null, file -> {
      files.add(file);
      CancellationChecker.checkCancelled(files.size());
      return true;
    });
    return files;
  }
private static @NotNull Set<VirtualFile> getVirtualFilesByNames(@NotNull Set<String> names,
                                                                  @NotNull GlobalSearchScope scope,
                                                                  @Nullable IdFilter filter)