void (@NotNull Map<SearchEverywhereContributor<?>, Boolean> hasMoreContributors) { String pattern = getSearchPattern(); pattern = pattern.replaceAll("^" + SearchTopHitProvider.getTopHitAccelerator() + "\\S+\\s*", ""); if (myResultsList.isEmpty() || myListModel.isResultsExpired()) { if (myHeader.canSetEverywhere() && !myHeader.isEverywhere() && !pattern.isEmpty()) { myHeader.autoSetEverywhere(true); myNotFoundString = pattern; return; } hideHint(); if (myListModel.isResultsExpired()) { myListModel.clear(); } } updateEmptyText(pattern); hasMoreContributors.forEach(myListModel::setHasMore); mySelectionTracker.resetSelectionIfNeeded(); myHintHelper.setSearchInProgress(false); myUsagePreviewPanel.setVisible(!myResultsList.isEmpty()); myExternalSearchListeners.forEach(listener -> { listener.searchFinished(hasMoreContributors); if (listener instanceof SearchListenerEx listenerEx) listenerEx.searchFinished(myListModel.getItems()); }); }