Artifact (Artifact artifact, String newName) { final ModifiableArtifactModel model = getArtifactManager().createModifiableModel(); model.getOrCreateModifiableArtifact(artifact).setName(newName); commitModel(model); return artifact; }