void (@Nullable NamedConfigurable configurable) { boolean selectionChanged = !Comparing.equal(myCurrentConfigurable, configurable); if (selectionChanged && myCurrentConfigurable instanceof ArtifactConfigurable) { ArtifactEditorImpl editor = myPackagingEditorContext.getArtifactEditor(((ArtifactConfigurable)myCurrentConfigurable).getArtifact()); if (editor != null) { editor.getLayoutTreeComponent().saveElementProperties(); } } super.updateSelection(configurable); if (selectionChanged && configurable instanceof ArtifactConfigurable) { ArtifactEditorImpl editor = myPackagingEditorContext.getArtifactEditor(((ArtifactConfigurable)configurable).getArtifact()); if (editor != null) { editor.getLayoutTreeComponent().resetElementProperties(); } } }