void () { final int count = 100000; String text = StringUtil.repeat("//\n \t \t \n \n", count); long start = System.currentTimeMillis(); VirtualFile file = myFixture.addFileToProject("foo.java", text).getVirtualFile(); LOG.debug("creation took " + (System.currentTimeMillis() - start) + " ms"); start = System.currentTimeMillis(); myFixture.configureFromExistingVirtualFile(file); LOG.debug("configure took " + (System.currentTimeMillis() - start) + " ms"); start = System.currentTimeMillis(); List<HighlightInfo> infos = runLocalInspections(); assertEmpty(infos); LOG.debug("warm-up took " + (System.currentTimeMillis() - start) + " ms"); PlatformTestUtil.startPerformanceTest("many whitespaces highlighting", 4500, () -> { DaemonCodeAnalyzer.getInstance(getProject()).restart(); assertEmpty(runLocalInspections()); }).assertTiming(); }