Icon (boolean hovered) { Icon icon = (Icon)getComponent().getClientProperty(SEARCH_ICON); if (icon != null) { return icon; } return getSearchIcon(hovered, isSearchFieldWithHistoryPopup(TextFieldWithPopupHandlerUI.this.getComponent())); }