Collection<PackagingNodeSource> (Collection<? extends PackagingNodeSource> nodeSources) { Set<PackagingNodeSource> result = new HashSet<>(); collectRootNodeSources(nodeSources, result); return result; }