void (@NotNull ActionGroup actionGroup) { boolean multiChoicePopup = Utils.isMultiChoiceGroup(actionGroup); List<AnAction> newVisibleActions = Utils.expandActionGroup( actionGroup, presentationFactory, myDataContext, myActionPlace); List<AnAction> filtered = myShowDisabled ? newVisibleActions : ContainerUtil.filter( newVisibleActions, o -> o instanceof Separator || presentationFactory.getPresentation(o).isEnabled()); calcMaxIconSize(filtered); for (AnAction action : filtered) { if (action instanceof Separator) { myPrependWithSeparator = true; mySeparatorText = ((Separator)action).getText(); } else { Presentation presentation = presentationFactory.getPresentation(action); if (multiChoicePopup && action instanceof Toggleable) { presentation.setMultiChoice(true); } appendAction(action, presentation); } } }