public static boolean isSearchFieldWithHistoryPopup(Component c) {
    if(c instanceof JComponent) {
      var historyPopupEnabled = ((JComponent)c).getClientProperty(HISTORY_POPUP_ENABLED);
      var searchPopupDisabled = historyPopupEnabled != null && historyPopupEnabled.equals(false);
      return isSearchField(c) && !searchPopupDisabled;
    }
    return false;
  }
public static boolean isSearchFieldWithHistoryPopup(Component c)