List<Artifact> () { final List<Artifact> result = new ArrayList<>(); final ArtifactManager artifactManager = ArtifactManager.getInstance(myProject); for (String name : myState.myArtifactsToBuild) { ContainerUtil.addIfNotNull(result, artifactManager.findArtifact(name)); } return result; }