public static @Nullable GitRemote getDefaultRemote(@NotNull Collection<GitRemote> remotes) {
    return ContainerUtil.find(remotes, r -> r.getName().equals(GitRemote.ORIGIN));
  }
public static @Nullable GitRemote getDefaultRemote(@NotNull Collection<GitRemote> remotes)