void (@NotNull DefaultActionGroup group) { AnAction deleteAction = ActionManager.getInstance().getAction(IdeActions.ACTION_DELETE); deleteAction.registerCustomShortcutSet(myView, null); group.add(deleteAction); myView.installPopupHandler(new DefaultActionGroup(deleteAction)); }