IncrementalScheduler scheduler, ListenerRegistrar<CursorListener> listenerRegistrar) {
this.anchorManager = anchorManager;
this.renderer = renderer;
this.scheduler = scheduler;
this.listenerRegistrar = listenerRegistrar;
searchTask = new SearchTask(document, viewportModel, scheduler);
searchTaskHandler = new SearchTaskHandler();
css = res.parenMatchHighlighterCss();
cursorListener = new CursorListener() {
@Override