protected int getSearchIconPreferredSpace() {
    Icon icon = getSearchIcon(true, isSearchFieldWithHistoryPopup(this.getComponent()));
    return icon == null ? 0 : icon.getIconWidth() + getSearchIconGap();
  }
protected int getSearchIconPreferredSpace()