Set<MetricEvent> () { KeymapManager keymapManager = KeymapManager.getInstance(); if (keymapManager == null) return Collections.emptySet(); Keymap keymap = keymapManager.getActiveKeymap(); if (!keymap.canModify()) return Collections.emptySet(); // default keymap can't be customized Set<MetricEvent> data = new HashSet<>(); KeymapFlagsStorage keymapFlagsStorage = KeymapFlagsStorage.Companion.getInstance(); 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; }