List<MavenArtifact> (Collection<? extends Artifact> artifacts, Map<Artifact, MavenArtifact> nativeToConvertedMap, File localRepository) { if (artifacts == null) return new ArrayList<>(); Set<MavenArtifact> result = new LinkedHashSet<>(artifacts.size()); for (Artifact each : artifacts) { result.add(convertArtifact(each, nativeToConvertedMap, localRepository)); } return new ArrayList<>(result); }