void () { configureByText(XmlFileType.INSTANCE, "<!DOCTYPE rules [\n" + IntStream.range(0, 10000).mapToObj(i -> "<!ENTITY pnct" + i + " \"x\">\n").collect(Collectors.joining()) + "]>\n" + "<rules/>"); PlatformTestUtil .startPerformanceTest("highlighting", 4_500, () -> doHighlighting()) .setup(() -> getPsiManager().dropPsiCaches()) .usesAllCPUCores() .assertTiming(); }