class SchemaUpgradeHelper {

  private String getMinimalUpgradeCatalogVersion(){
    List<UpgradeCatalog> candidateCatalogs = new ArrayList<>(allUpgradeCatalogs);
    Collections.sort(candidateCatalogs, new AbstractUpgradeCatalog.VersionComparator());

    if (candidateCatalogs.isEmpty()) {
      return null;
    }

    return candidateCatalogs.iterator().next().getTargetVersion();
  }

  @Inject public  SchemaUpgradeHelper(Set<UpgradeCatalog> allUpgradeCatalogs,
                             PersistService persistService,
                             DBAccessor dbAccessor,
                             Configuration configuration);

}