void (@NotNull AnActionEvent e) { Set<IdeaPluginDescriptor> descriptors = new HashSet<>(); PluginsGroup group = myPluginModel.getDownloadedGroup(); if (group == null || group.ui == null) { ApplicationInfoEx appInfo = ApplicationInfoEx.getInstanceEx(); for (IdeaPluginDescriptor descriptor : PluginManagerCore.getPlugins()) { if (!appInfo.isEssentialPlugin(descriptor.getPluginId()) && !descriptor.isBundled() && descriptor.isEnabled() != myEnable) { descriptors.add(descriptor); } } } else { for (ListPluginComponent component : group.ui.plugins) { IdeaPluginDescriptor plugin = component.getPluginDescriptor(); if (myPluginModel.isEnabled(plugin) != myEnable) { descriptors.add(plugin); } } } if (!descriptors.isEmpty()) { if (myEnable) { myPluginModel.enable(descriptors); } else { myPluginModel.disable(descriptors); } } }