List<FrameworkVersion> () { List<FrameworkVersion> versions = new ArrayList<>(); for (FrameworkVersion version : myAllVersions) { if (version.getAvailabilityCondition().isAvailableFor(myModel)) { versions.add(version); } } return versions; }