void (boolean flag) { ThreadingAssertions.assertEventDispatchThread(); setUpdateByTimerEnabled(false); try { cancelAllUpdateProgresses(false, "serializeCodeInsightPasses"); TextEditorHighlightingPassRegistrarImpl registrar = (TextEditorHighlightingPassRegistrarImpl)TextEditorHighlightingPassRegistrar.getInstance(myProject); registrar.serializeCodeInsightPasses(flag); } finally { setUpdateByTimerEnabled(true); } }