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