Set<Artifact> (@NotNull Collection<? extends Artifact> artifacts, @NotNull PackagingElementResolvingContext context, final boolean withOutputPathOnly) { Set<Artifact> result = new HashSet<>(); for (Artifact artifact : artifacts) { collectIncludedArtifacts(artifact, context, new HashSet<>(), result, withOutputPathOnly); } return result; }