void (T each) { myFilteredList.add(each); if (!mySpeedSearch.isHoldingFilter()) return; String filterString = StringUtil.toUpperCase(mySpeedSearch.getFilter()); String candidateString = StringUtil.toUpperCase(myStep.getTextFor(each)); int index = myFilteredList.size() - 1; if (myFullMatchIndex == -1 && filterString.equals(candidateString)) { myFullMatchIndex = index; } if (myStartsWithIndex == -1 && candidateString.startsWith(filterString)) { myStartsWithIndex = index; } }