void (@NotNull AnActionEvent e) { Collection<? extends IdeaPluginDescriptorImpl> descriptors = getAllDescriptors(); boolean disabled = descriptors.isEmpty() || exists(descriptors, IdeaPluginDescriptor::isBundled) || exists(descriptors, myPluginModel::isUninstalled); e.getPresentation().setEnabledAndVisible(!disabled); setShortcutSet(SHORTCUT_SET, myShowShortcut); }