void () { CodeEditUtil.allowToMarkNodesForPostponedFormatting(false); try { PsiDocumentManager.getInstance(myProject).commitDocument(myDocument); } finally { CodeEditUtil.allowToMarkNodesForPostponedFormatting(true); } }