void () { AnAction action1 = ActionManager.getInstance().getAction(IdeActions.ACTION_COPY); AnAction action2 = ActionManager.getInstance().getAction(IdeActions.ACTION_DELETE); JPanel component = new JPanel(); action1.registerCustomShortcutSet(action2.getShortcutSet(), component); assertWarningShown(true); }