void () { String listBody = StringUtil.join(Collections.nCopies(2000, "\"foo\""), ",\n"); @Language("JAVA") String text = "class S { " + " String[] s = {" + listBody + "};\n" + " void foo(String... s) { foo(" + listBody + "); }\n" + "}"; configureByText(JavaFileType.INSTANCE, text); PlatformTestUtil.maskExtensions(MultiHostInjector.MULTIHOST_INJECTOR_EP_NAME, getProject(), Collections.emptyList(), getTestRootDisposable()); ExtensionTestUtil.maskExtensions(LanguageInjector.EXTENSION_POINT_NAME, Collections.emptyList(), getTestRootDisposable()); ExtensionTestUtil.maskExtensions(new ExtensionPointName<>(LanguageAnnotators.INSTANCE.getName()), Collections.emptyList(), getTestRootDisposable()); PlatformTestUtil.startPerformanceTest("highlighting many string literals", 11_000, () -> { assertEmpty(highlightErrors()); type("k"); assertNotEmpty(highlightErrors()); backspace(); }).usesAllCPUCores().assertTiming(); }