void (@NotNull IdeaPluginDescriptor ideaPluginDescriptor) { PluginId pluginId = ideaPluginDescriptor.getPluginId(); PluginEnabledState enabled = PluginManagerCore.isDisabled(pluginId) ? PluginEnabledState.DISABLED : ideaPluginDescriptor.isEnabled() ? PluginEnabledState.ENABLED : null; setEnabled(pluginId, enabled); }