void () { // this action is only taken when the user is entering text, // not when is programmatically set (setText) if (userUpdate) { deactivateCustomDecoration(); setError(false); String text = getText(); // the best match is anyway obtained to select the proper // choice on the popup if (instantFiltering || popup.isVisible()) { ChoiceMatch match = getBestMatch(text); if (instantFiltering) { updateFilter(text, match, true); } } } }