public static @Nullable GitRemote findRemoteByName(@NotNull GitRepository repository, @NotNull @NonNls String name) {
    return findRemoteByName(repository.getRemotes(), name);
  }
public static @Nullable GitRemote findRemoteByName(@NotNull GitRepository repository, @NotNull @NonNls String name)