ActionGroup (@NotNull ActionGroup actionGroup) { final class MyGroup extends ActionGroup implements ActionUpdateThreadAware.Recursive, TransparentWrapper { { setPopup(false); } @Override public @NotNull ActionUpdateThread getActionUpdateThread() { return ActionUpdateThread.BGT; } @Override public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e) { return new AnAction[] { actionGroup }; } } return actionGroup instanceof ActionUpdateThreadAware.Recursive ? actionGroup : new MyGroup(); }