void () { int fullMatchIndex = myListModel.getClosestMatchIndex(); if (fullMatchIndex != -1 && isSelectableAt(fullMatchIndex)) { myList.setSelectedIndex(fullMatchIndex); } else { selectFirstSelectableItem(); } }