MetricEvent (InspectionToolWrapper<?, ?> tool, PluginInfo info, boolean enabled) { return NOT_DEFAULT_STATE.metric( INSPECTION_ID_FIELD.with(isSafeToReport(info) ? tool.getID() : "third.party"), EventFields.Language.with(Language.findLanguageByID(tool.getLanguage())), ENABLED_FIELD.with(enabled), EventFields.PluginInfo.with(info) ); }