void () { VirtualFile virtualFile = findVirtualFile(BASE_PATH + "/" + getTestName(false) + ".txt"); configureByExistingFile(virtualFile); FileDocumentManager.getInstance().saveAllDocuments(); final Document document = Objects.requireNonNull(FileDocumentManager.getInstance().getDocument(virtualFile)); assertFalse(FileDocumentManager.getInstance().isDocumentUnsaved(document)); doHighlighting(); List<HighlightInfo> infos = ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzerEx.getInstanceEx(getProject())).getFileLevelHighlights(getProject(), getFile()); assertEmpty(infos); }