void () { StringBuilder text = new StringBuilder("class S { String ffffff = new StringBuilder()\n"); for (int i=0; i<2000; i++) { text.append(".append(").append(i).append(")\n"); } text.append(".toString();<caret>}"); configureByText(JavaFileType.INSTANCE, text.toString()); PlatformTestUtil.startPerformanceTest(getName(), 100_000, () -> { List<HighlightInfo> infos = highlightErrors(); assertEmpty(infos); type("k"); assertNotEmpty(highlightErrors()); backspace(); }).usesAllCPUCores().assertTiming(); }