boolean (String pattern, Processor<Object> consumer) { ActionManager actionManager = ActionManager.getInstance(); List<String> actions = AbbreviationManager.getInstance().findActions(pattern); for (String actionId : actions) { AnAction action = actionManager.getAction(actionId); if (action == null || !isEnabled(action)) { continue; } if (!consumer.process(action)) { return true; } } return false; }