ActionCallback () { final Artifact artifact = myContext.getArtifactModel().getArtifactByOriginal(myArtifact); return myContext.getProjectStructureConfigurable().select(myArtifact, true).doWhenDone(() -> { final ArtifactEditorEx artifactEditor = (ArtifactEditorEx)myContext.getOrCreateEditor(artifact); if (myParentPath != null && myPackagingElement != null) { artifactEditor.getLayoutTreeComponent().selectNode(myParentPath, myPackagingElement); } }); }