private static Map<String, RepoPackage> doBuildNameToPackageMap(List<? extends RepoPackage> packages) {
    final Map<String, RepoPackage> packageMap = new HashMap<>();
    for (RepoPackage aPackage : packages) {
      packageMap.put(aPackage.getName(), aPackage);
    }
    return packageMap;
  }
private static Map<String, RepoPackage> doBuildNameToPackageMap(List<? extends RepoPackage> packages)