boolean (@NotNull KeyEvent keyEvent, @NotNull @NonNls String actionId) { for (Shortcut shortcut : getActiveKeymapShortcuts(actionId).getShortcuts()) { if (shortcut instanceof KeyboardShortcut && AWTKeyStroke.getAWTKeyStrokeForEvent(keyEvent) == ((KeyboardShortcut)shortcut).getFirstKeyStroke()) { return true; } } return false; }