@Override
  public @NotNull Set<MetricEvent> getMetrics() {
    if (SystemInfo.isLinux) {
      Set<MetricEvent> result = new HashSet<>();
      result.add(CURRENT_DESKTOP.metric(toReportedName(System.getenv("XDG_CURRENT_DESKTOP"))));
      result.add(SESSION_TYPE.metric(toReportedSessionName(System.getenv("XDG_SESSION_TYPE"))));
      result.add(THEME.metric(toReportedTheme(X11UiUtil.getTheme())));
      result.add(ICON_THEME.metric(toReportedTheme(X11UiUtil.getIconTheme())));
      return result;
    }
    return Collections.emptySet();
  }
@Override
  public @NotNull Set<MetricEvent> getMetrics()