Set<Identifier> (Set<Identifier> identifiers) { Set<Identifier> set = new HashSet<>(); Predicate<? super Identifier> predicate = isReady(identifiers); for (Identifier identifier : identifiers) { if (predicate.test(identifier)) { set.add(identifier); } } return set; }