Set<PatternDeconstructionDescription> (Set<PatternDeconstructionDescription> descriptions) { Set<PatternDeconstructionDescription> filtered = new HashSet<>(); for (PatternDeconstructionDescription description : descriptions) { if (ContainerUtil.and(description.list(), t -> t instanceof PatternTypeTestDescription)) { filtered.add(description); } } return filtered; }