void (VirtualFile f) { MavenLog.LOG.warn("checkHighlighting started"); VirtualFileManager.getInstance().syncRefresh(); MavenLog.LOG.warn("checkHighlighting: VFS refreshed"); var psiFile = findPsiFile(f); if (null == psiFile) { MavenLog.LOG.warn("checkHighlighting: psi file is null"); } else { var document = myFixture.getDocument(psiFile); if (null == document) { MavenLog.LOG.warn("checkHighlighting: document is null"); } else { FileDocumentManager.getInstance().reloadFromDisk(document); MavenLog.LOG.warn("checkHighlighting: document reloaded from disk"); } } configTest(myProjectPom); MavenLog.LOG.warn("checkHighlighting: test configured"); try { myFixture.testHighlighting(true, false, true, f); } catch (Throwable throwable) { throw new RuntimeException(throwable); } finally { MavenLog.LOG.warn("checkHighlighting finished"); } }