Set<MetricEvent> (@NotNull Project project) { Set<MetricEvent> set = new HashSet<>(); CodeInsightWorkspaceSettings ciws = CodeInsightWorkspaceSettings.getInstance(project); CodeInsightWorkspaceSettings ciwsDefault = new CodeInsightWorkspaceSettings(); MetricEventUtilKt.addBoolIfDiffers(set, ciws, ciwsDefault, s -> s.isOptimizeImportsOnTheFly(), AUTO_OPTIMIZE_IMPORTS); return set; }