Collection<HighlightInfo> (@NotNull final ExpectedHighlightingData data) { data.init(); PsiDocumentManager.getInstance(myProject).commitAllDocuments(); PsiManagerEx.getInstanceEx(getProject()).setAssertOnFileLoadingFilter(myVirtualFileFilter, getTestRootDisposable()); try { Collection<HighlightInfo> infos = doHighlighting(); String text = myEditor.getDocument().getText(); doCheckResult(data, infos, text); return infos; } finally { PsiManagerEx.getInstanceEx(getProject()).setAssertOnFileLoadingFilter(VirtualFileFilter.NONE, getTestRootDisposable()); } }