void (String newText) { if (findElement(newText) == null) { mySearchField.setForeground(ERROR_FOREGROUND_COLOR); if(!myCanExpand) { showHint(mySearchOption); } } else { mySearchField.setForeground(FOREGROUND_COLOR); } }