Icon () { boolean enabled = isEnabled(); int popState = getPopState(); Icon hoveredIcon = (popState == POPPED || popState == PUSHED) ? myPresentation.getHoveredIcon() : null; Icon icon = enabled ? (hoveredIcon == null ? myIcon : hoveredIcon) : myDisabledIcon; return icon == null ? getFallbackIcon(enabled) : icon; }