List<DeploymentSource> (@NotNull Project project, @NotNull Collection<? extends Artifact> artifacts) { List<DeploymentSource> sources = new ArrayList<>(); ArtifactPointerManager pointerManager = ArtifactPointerManager.getInstance(project); for (Artifact artifact : artifacts) { sources.add(createArtifactDeploymentSource(pointerManager.createPointer(artifact))); } return sources; }