Icon () { Icon icon = !menuItem.isEnabled() ? menuItem.getDisabledIcon() : isSelected(menuItem) ? menuItem.getSelectedIcon() : menuItem.getIcon(); if (icon != null && icon.getIconWidth() > myMaxGutterIconWidth){ icon = null; } return icon; }