public void updateInBackground(@NotNull FindModel findModel, final boolean allowedToChangedEditorSelection) {
    final int stamp = mySearchResults.getStamp();
    myLivePreviewAlarm.cancelAllRequests();
    final FindModel copy = new FindModel();
    copy.copyFrom(findModel);
    mySearchResults.setUpdating(true);
    if (myComponent != null) {
      myComponent.getComponent().updateActions();
    }
    Runnable request = () -> mySearchResults.updateThreadSafe(copy, allowedToChangedEditorSelection, null, stamp)
      .doWhenRejected(() -> updateInBackground(findModel, allowedToChangedEditorSelection));
    if (ApplicationManager.getApplication().isUnitTestMode()) {
      request.run();
    }
    else {
      myLivePreviewAlarm.addRequest(request, myUserActivityDelay);
    }
  }
public void updateInBackground(@NotNull FindModel findModel, final boolean allowedToChangedEditorSelection)