void (@NotNull AnActionEvent e, @NotNull Notification notification) { HashSet<PluginId> pluginIds = new HashSet<>(notInstalled); pluginIds.addAll(notInstalled); for (IdeaPluginDescriptor descriptor : disabled) { pluginIds.add(descriptor.getPluginId()); } PluginsAdvertiser.installAndEnable(project, pluginIds, true, true, () -> notification.expire()); }