void () { isLocalScrollBarStabilized = false; pagesCash.clear(); runCaretAndSelectionListeningTransparentCommand(() -> { documentOfPagesModel.removeAllPages(dataProvider.getProject()); }); requestUpdate(); }