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