public static @Nullable GitRemote findRemoteByName(Collection<GitRemote> remotes, @NotNull @NonNls String name) {
    return ContainerUtil.find(remotes, remote -> remote.getName().equals(name));
  }
public static @Nullable GitRemote findRemoteByName(Collection<GitRemote> remotes, @NotNull @NonNls String name)