Collection<PatternDeconstructionDescription> (int differentElement, @NotNull Set<? extends PatternDescription> nesterPatterns, @NotNull PatternDeconstructionDescription sample) { HashSet<PatternDeconstructionDescription> descriptions = new HashSet<>(); for (PatternDescription nestedPattern : nesterPatterns) { descriptions.add(sample.createFor(differentElement, nestedPattern)); } return descriptions; }