boolean (@NotNull KeyEvent e, @Nullable List<? extends AnAction> actionsToSkip) { if (actionsToSkip != null) { final KeyboardShortcut eventShortcut = new KeyboardShortcut(KeyStroke.getKeyStrokeForEvent(e), null); for (AnAction action : actionsToSkip) { for (Shortcut sc : action.getShortcutSet().getShortcuts()) { if (sc.isKeyboard() && sc.startsWith(eventShortcut)) { if (!Registry.is("terminal.Ctrl-E.opens.RecentFiles.popup", false) && IdeActions.ACTION_RECENT_FILES.equals(ActionManager.getInstance().getId(action))) { if (e.getModifiersEx() == InputEvent.CTRL_DOWN_MASK && e.getKeyCode() == KeyEvent.VK_E) { return false; } } return true; } } } } return false; }