CompileScope (String[] artifactNames) { List<Artifact> artifacts = new ArrayList<>(); for (String name : artifactNames) { artifacts.add(ArtifactsTestUtil.findArtifact(myProject, name)); } return ArtifactCompileScope.createArtifactsScope(myProject, artifacts); }