private static @NotNull Pair<Collection<Remote>, Collection<Url>> parseRemotes(@NotNull Ini ini) {
    Collection<Remote> remotes = new ArrayList<>();
    Collection<Url> urls = new ArrayList<>();
    for (String sectionName : ini.keySet()) {
      Profile.Section section = ini.get(sectionName);

      Remote remote = parseRemoteSection(sectionName, section);
      if (remote != null) {
        remotes.add(remote);
      }
      else {
        Url url = parseUrlSection(sectionName, section);
        if (url != null) {
          urls.add(url);
        }
      }
    }
    return Pair.create(remotes, urls);
  }
private static @NotNull Pair<Collection<Remote>, Collection<Url>> parseRemotes(@NotNull Ini ini)