void (@NotNull Artifact artifact, Runnable action) { final ModifiableArtifact modifiableArtifact = getOrCreateModifiableArtifactModel().getOrCreateModifiableArtifact(artifact); modifiableArtifact.setRootElement(artifact.getRootElement()); action.run(); }