void () { ApplicationManager.getApplication().runWriteAction(() -> { myArtifactEditor.apply(); ((MockArtifactsStructureConfigurableContext)myArtifactEditor.getContext().getParent()).commitModel(); }); }