void (Editor editor) { SearchResults searchResults = new SearchResults(editor, editor.getProject()); myLivePreviewController = new LivePreviewController(searchResults, null, getTestRootDisposable()); myFindModel.addObserver(findModel -> myLivePreviewController.updateInBackground(myFindModel, true)); myLivePreviewController.on(); }