private static boolean fetchParent(
     @NotNull final Project project,
     @NotNull final GitRepository repository,
     @NotNull final ProgressIndicator indicator) {
   GitFetchResult result =
       new GitFetcher(project, indicator, false).fetch(repository.getRoot(), "upstream", null);
   if (!result.isSuccess()) {
     GitFetcher.displayFetchResult(project, result, null, result.getErrors());
     return false;
   }
   return true;
 }
  private boolean doFetchRemote(@NotNull ForkInfo fork) {
    if (fork.getRemoteName() == null) return false;

    GitFetchResult result =
        new GitFetcher(myProject, new EmptyProgressIndicator(), false)
            .fetch(myGitRepository.getRoot(), fork.getRemoteName(), null);
    if (!result.isSuccess()) {
      GitFetcher.displayFetchResult(myProject, result, null, result.getErrors());
      return false;
    }
    return true;
  }