void (@Nullable NamedConfigurable configurable) { boolean selectionChanged = !Comparing.equal(myCurrentConfigurable, configurable); if (myCurrentConfigurable instanceof LibraryConfigurable && selectionChanged) { ((LibraryConfigurable)myCurrentConfigurable).onUnselected(); } super.updateSelection(configurable); if (myCurrentConfigurable instanceof LibraryConfigurable && selectionChanged) { ((LibraryConfigurable)myCurrentConfigurable).onSelected(); } }