Set<MetricEvent> () { KeymapManager keymapManager = KeymapManager.getInstance(); if (keymapManager == null) return Collections.emptySet(); Keymap keymap = keymapManager.getActiveKeymap(); List<EventPair<String>> data = new ArrayList<>(); data.add(KEYMAP_NAME.with(getKeymapName(keymap))); if (keymap.canModify()) { data.add(BASED_ON.with(getKeymapName(keymap.getParent()))); } return Collections.singleton(KEYMAP.metric(data)); }