void (RangeSearchTask caller, long curPageNumber, @NotNull List<? extends SearchResult> allMatchesAtFrame) { if (inBackground) { ApplicationManager.getApplication().invokeLater(() -> { onFrameSearchResultsFound(caller, curPageNumber, allMatchesAtFrame); }); } else { onFrameSearchResultsFound(caller, curPageNumber, allMatchesAtFrame); } }