class IspModelingUtils {

  @VisibleForTesting
  static List<String> ispNameConflicts(
      Map<String, Configuration> configurations, Map<Long, IspModel> asnToIspInfo) {
    ImmutableList.Builder<String> conflicts = ImmutableList.builder();

    asnToIspInfo.forEach(
        (asn, ispInfo) -> {
          String hostname = ispInfo.getHostname();
          if (configurations.containsKey(hostname)) {
            conflicts.add(
                String.format(
                    "ISP hostname %s for ASN %d conflicts with a node name in the snapshot",
                    hostname, asn));
          }
        });
    return conflicts.build();
  }

  private  IspModelingUtils();

}