class InstanceGroupV1ToInstanceGroupV4Converter {

    public List<InstanceGroupV4Request> convertTo(Set<InstanceGroupV1Request> instanceGroups, DetailedEnvironmentResponse environment) {
        return instanceGroups.stream().map(ig -> convert(ig, environment)).collect(Collectors.toList());
    }

}