void (Icon icon, boolean hideDropdownIcon) { Presentation presentation = mySecondaryActions.getTemplatePresentation(); presentation.setIcon(icon); presentation.putClientProperty(ActionButton.HIDE_DROPDOWN_ICON, hideDropdownIcon ? Boolean.TRUE : null); }