void (boolean directionForward) { int gotoSearchResultIndex = getNextOccurrenceIndexIfCan(directionForward, largeFileEditor.getCaretPageNumber(), largeFileEditor.getCaretPageOffset(), myCloseSearchResultsList); if (gotoSearchResultIndex == -1) { boolean launchedLoopedCloseSearch = false; SearchTaskOptions normalCloseSearchOptions = generateOptionsForNormalCloseSearch(directionForward); if (notFoundState) { notFoundState = false; launchedLoopedCloseSearch = launchLoopedCloseSearchTaskIfNeeded(normalCloseSearchOptions); } if (!launchedLoopedCloseSearch) { launchCloseSearch(normalCloseSearchOptions); } } else { myCloseSearchResultsList.setSelectedIndex(gotoSearchResultIndex); setNewStatusText(""); } }