void (boolean collapseNewRegions) { PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); DocRenderPassFactory.Items items = DocRenderPassFactory.calculateItemsToRender(getEditor(), getFile()); DocRenderPassFactory.applyItemsToRender(getEditor(), getProject(), items, collapseNewRegions); }