JpsArtifact (String name, LayoutElementTestUtil.LayoutElementCreator root, JpsArtifactType<JpsDummyElement> artifactType) { assertFalse("JpsArtifact " + name + " already exists", getArtifactNames().contains(name)); JpsArtifact artifact = JpsArtifactService.getInstance().addArtifact(myProject, name, root.buildElement(), artifactType, JpsElementFactory.getInstance().createDummyElement()); artifact.setOutputPath(getAbsolutePath("out/artifacts/" + name)); return artifact; }