Set<MetricEvent> () { EditorColorsScheme currentScheme = EditorColorsManager.getInstance().getGlobalScheme(); Set<MetricEvent> usages = new HashSet<>(); if (currentScheme instanceof AbstractColorsScheme) { String schemeName = currentScheme.getName(); if (schemeName.startsWith(Scheme.EDITABLE_COPY_PREFIX)) { EditorColorsScheme original = ((AbstractColorsScheme)currentScheme).getOriginal(); if (original != null) { schemeName = original.getName(); } } String scheme = getKnownSchemeName(schemeName); boolean isDark = ColorUtil.isDark(currentScheme.getDefaultBackground()); usages.add(COLOR_SCHEME.metric(scheme, isDark)); } return usages; }