void (boolean next) { if (!isShown()) { return; } updateHistoryIterator(); JTextField searchField = mySearchEverywhereUI.getSearchField(); searchField.setText(next ? myHistoryIterator.next() : myHistoryIterator.prev()); searchField.selectAll(); }