void (Editor editor, boolean quick) { if (!editor.getSettings().isAutoCodeFoldingEnabled()) return; PsiDocumentManager.getInstance(myProject).commitDocument(editor.getDocument()); Runnable runnable = updateFoldRegions(editor, false, quick); if (runnable != null) { runnable.run(); } }