private void deleteAllPagesFromDocument() {
    pagesCache.addAll(documentOfPagesModel.getPagesList());
    runCaretAndSelectionListeningTransparentCommand(
      () -> documentOfPagesModel.removeAllPages(dataProvider.getProject()));
  }
private void deleteAllPagesFromDocument()