@Deprecated
  @RequiresEdt
  public static @Nullable GitRepository getCurrentRepository(@NotNull Project project) {
    return getRepositoryOrGuess(project, DvcsUtil.getSelectedFile(project));
  }
@Deprecated
  @RequiresEdt
  public static @Nullable GitRepository getCurrentRepository(@NotNull Project project)