void (@NotNull Component component) { if (PluginManagerConfigurable.showRestartDialog() == Messages.YES) { needRestart = true; createShutdownCallback = false; DialogWrapper settings = DialogWrapper.findInstance(component); if (settings instanceof SettingsDialog) { ((SettingsDialog)settings).applyAndClose(false /* will be saved on app exit */); } else if (isModified()) { try { apply(null); } catch (ConfigurationException e) { LOG.error(e); } } ApplicationManagerEx.getApplicationEx().restart(true); } }