Set<MetricEvent> () { if (SystemInfo.isLinux) { Set<MetricEvent> result = new HashSet<>(); result.add(CURRENT_DESKTOP.metric(toReportedName(System.getenv("XDG_CURRENT_DESKTOP")))); return result; } return Collections.emptySet(); }