void (@NotNull String actionID, @Nullable Supplier<? extends AnAction> delegateActionSupplier, @NotNull AnActionEvent actionEvent) { AnAction action = ActionManager.getInstance().getAction(actionID); DumbAwareAction.create(e -> ActionUtil.performActionDumbAwareWithCallbacks( delegateActionSupplier == null ? action : delegateActionSupplier.get(), actionEvent) ).registerCustomShortcutSet(action.getShortcutSet(), myList); }