public static @Nullable GitRemoteBranch findRemoteBranch(@NotNull GitRepository repository,
                                                           final @NotNull GitRemote remote,
                                                           @NotNull @NonNls String nameAtRemote) {
    return ContainerUtil.find(repository.getBranches().getRemoteBranches(), remoteBranch -> {
      return remoteBranch.getRemote().equals(remote) &&
             remoteBranch.getNameForRemoteOperations().equals(GitBranchUtil.stripRefsPrefix(nameAtRemote));
    });
  }
public static @Nullable GitRemoteBranch findRemoteBranch(@NotNull GitRepository repository,
                                                           final @NotNull GitRemote remote,
                                                           @NotNull @NonNls String nameAtRemote)