class SubnetSelectorService {

    List<CloudSubnet> collectPrivateSubnets(Collection<CloudSubnet> subnetMetas) {
        List<CloudSubnet> result = new ArrayList<>();
        for (CloudSubnet subnetMeta : subnetMetas) {
            if (subnetMeta.isPrivateSubnet()) {
                result.add(subnetMeta);
            }
        }
        LOGGER.debug("Private subnets for selections: {}", result);
        return result;
    }

}