void (@NotNull GotoActionModel.MatchedValue selected) { AnAction action = getAction(selected); if (action == null) return; String id = ActionManager.getInstance().getId(action); if (id == null) return; Set<String> ids = ActionHistoryManager.getInstance().getState().getIds(); if (ids.size() < Registry.intValue("search.everywhere.recents.limit")) { ids.add(id); } }