void (boolean needRestartForUninstall) { myPluginModel.addUninstalled(getDescriptorForActions()); updateColors(mySelection); removeButtons(needRestartForUninstall); if (!needRestartForUninstall && InstalledPluginsState.getInstance().wasUninstalledWithoutRestart(getDescriptorForActions().getPluginId())) { myLayout.addButtonComponent(myInstallButton = createInstallButton()); myInstallButton.setEnabled(false, IdeBundle.message("plugins.configurable.uninstalled")); } }