@RequiresBackgroundThread
  public static @NotNull Set<GitRepository> getRepositoriesForFiles(@NotNull Project project,
                                                                    @NotNull Collection<? extends VirtualFile> files)
    throws VcsException {
    Set<GitRepository> result = new HashSet<>();
    for (VirtualFile file : files) {
      result.add(getRepositoryForFile(project, file));
    }
    return result;
  }
@RequiresBackgroundThread
  public static @NotNull Set<GitRepository> getRepositoriesForFiles(@NotNull Project project,
                                                                    @NotNull Collection<? extends VirtualFile> files)