boolean[] (@NotNull IdeaPluginDescriptor descriptor) { PluginId pluginId = descriptor.getPluginId(); boolean uninstalled = NewUiUtil.isDeleted(descriptor); boolean uninstalledWithoutRestart = InstalledPluginsState.getInstance().wasUninstalledWithoutRestart(pluginId); if (!uninstalled) { InstalledPluginsState pluginsState = InstalledPluginsState.getInstance(); uninstalled = pluginsState.wasInstalled(pluginId) || pluginsState.wasUpdated(pluginId); } return new boolean[]{uninstalled, uninstalledWithoutRestart}; }