public static @Nullable GitRemote getDefaultOrFirstRemote(@NotNull Collection<GitRemote> remotes) {
    GitRemote result = getDefaultRemote(remotes);
    return result == null ? ContainerUtil.getFirstItem(remotes) : result;
  }
public static @Nullable GitRemote getDefaultOrFirstRemote(@NotNull Collection<GitRemote> remotes)