@Override
  public @NotNull Set<MetricEvent> getMetrics() {
    KeymapManager keymapManager = KeymapManager.getInstance();
    if (keymapManager == null) {
      return Collections.emptySet();
    }

    Keymap keymap = keymapManager.getActiveKeymap();
    if (!keymap.canModify()) {
      // default keymap can't be customized
      return Collections.emptySet();
    }

    Set<MetricEvent> data = new HashSet<>();
    KeymapFlagsStorage keymapFlagsStorage = ApplicationManager.getApplication().getService(KeymapFlagsStorage.class);

    for (String action_id : keymap.getActionIds()) {
      if (ActionsTree.isShortcutCustomized(action_id, keymap)) {
        if (keymapFlagsStorage.hasFlag(keymap, action_id, KeymapFlagsStorage.FLAG_MIGRATED_SHORTCUT)) {
          data.add(KEYMAP_CHANGE.metric(ActionsEventLogGroup.ACTION_ID.with(action_id), IMPORTED.with(true)));
        }
        else {
          data.add(KEYMAP_CHANGE.metric(ActionsEventLogGroup.ACTION_ID.with(action_id))); //reducing data by not reporting optional flag
        }
      }
    }

    return data;
  }
@Override
  public @NotNull Set<MetricEvent> getMetrics()