Set<MetricEvent> () { Set<MetricEvent> result = new HashSet<>(); StatusBarWidgetSettings settings = StatusBarWidgetSettings.getInstance(); StatusBarWidgetFactory.EP_NAME.processWithPluginDescriptor((factory, plugin) -> { PluginInfo pluginInfo = PluginInfoDetectorKt.getPluginInfoByDescriptor(plugin); boolean enabled = settings.isEnabled(factory); if (enabled != factory.isEnabledByDefault()) { result.add(WIDGET.metric(pluginInfo, factory.getId(), enabled)); } return Unit.INSTANCE; }); return result; }