void (@NotNull ArtifactType type, @NotNull ArtifactTemplate artifactTemplate) { Artifact artifact = ArtifactUtil.addArtifact(myPackagingEditorContext.getOrCreateModifiableArtifactModel(), type, artifactTemplate); selectNodeInTree(findNodeByObject(myRoot, artifact)); }