Condition<AnAction> (final ActionManager actionManager, final Keymap keymap, final Shortcut shortcut, final String filter, final boolean force) { return filter != null && !filter.isEmpty() ? isActionFiltered(filter, force) : shortcut != null ? isActionFiltered(actionManager, keymap, shortcut) : null; }