public static boolean isSearchField(Component c) {
    if(!(c instanceof JTextField)){
      return false;
    }
    var variant = ((JTextField)c).getClientProperty(VARIANT);
    return SEARCH_VARIANT_VALUE.equals(variant) || "searchWithJbPopup".equals(variant);
  }
public static boolean isSearchField(Component c)