void (@NotNull Presentation presentation, @NotNull String actionPlace) { Pair<Icon, Icon> icons = ActionStepBuilder.calcRawIcons(myAction, presentation, false); Icon icon = icons.first; Icon selectedIcon = icons.second; if (maxIconWidth != -1 && maxIconHeight != -1) { icon = scaleIconToSize(icon, maxIconWidth, maxIconHeight); selectedIcon = scaleIconToSize(selectedIcon, maxIconWidth, maxIconHeight); } if (icon == null) { icon = selectedIcon == null ? EmptyIcon.create(maxIconWidth, maxIconHeight) : selectedIcon; } boolean disableIcon = Boolean.TRUE.equals(presentation.getClientProperty(DISABLE_ICON_IN_LIST)); myIsKeepPopupOpen = myIsKeepPopupOpen || presentation.isMultiChoice() || myAction instanceof KeepingPopupOpenAction; myIsAlwaysVisible = Boolean.TRUE.equals(presentation.getClientProperty(ActionMenu.ALWAYS_VISIBLE)); myIcon = disableIcon ? null : icon; mySelectedIcon = selectedIcon; myText = presentation.getText(); }