private static @NotNull GitPushTarget makeTargetForNewBranch(@NotNull GitRepository repository,
                                                               @NotNull GitRemote remote,
                                                               @NotNull String branchName) {
    GitRemoteBranch existingRemoteBranch = findRemoteBranch(repository, remote, branchName);
    if (existingRemoteBranch != null) {
      return new GitPushTarget(existingRemoteBranch, false, GitPushTargetType.TRACKING_BRANCH);
    }
    return new GitPushTarget(new GitStandardRemoteBranch(remote, branchName), true, GitPushTargetType.TRACKING_BRANCH);
  }
private static @NotNull GitPushTarget makeTargetForNewBranch(@NotNull GitRepository repository,
                                                               @NotNull GitRemote remote,
                                                               @NotNull String branchName)