void (int maxMillis) { PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); assertNotNull(getFile().getText()); //to load text CodeInsightTestFixtureImpl.ensureIndexesUpToDate(getProject()); PlatformTestUtil.startPerformanceTest(getTestName(false), maxMillis, this::doHighlighting) .setup(() -> PsiManager.getInstance(getProject()).dropPsiCaches()) .usesAllCPUCores().assertTiming(); }