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