@RequiresBackgroundThread
  public static @NotNull GitRepository getRepositoryForRoot(@NotNull Project project, @NotNull VirtualFile root) throws VcsException {
    GitRepository repository = GitRepositoryManager.getInstance(project).getRepositoryForRoot(root);
    if (repository == null) throw new GitRepositoryNotFoundException(root);
    return repository;
  }
@RequiresBackgroundThread
  public static @NotNull GitRepository getRepositoryForRoot(@NotNull Project project, @NotNull VirtualFile root)