void (boolean checkWeakWarnings, Boolean includeExternalToolPass) { final PsiFile file = myTestFixture.getFile(); final Document doc = myTestFixture.getEditor().getDocument(); ExpectedHighlightingData data = new ExpectedHighlightingData(doc, true, checkWeakWarnings, false); data.init(); PsiDocumentManager.getInstance(myTestFixture.getProject()).commitAllDocuments(); Collection<HighlightInfo> highlights1 = doHighlighting(includeExternalToolPass); data.checkResult(file, highlights1, doc.getText()); }