void () { int caretCount = 1000; int charactersToType = 100; String initialText = StringUtil.repeat("<caret>\n", caretCount); initText(initialText); PlatformTestUtil.startPerformanceTest("Typing with large number of carets", 100_000, () -> { for (int i = 0; i < charactersToType; i++) { type('a'); } }).attempts(1).assertTiming(); checkResultByText(StringUtil.repeat(StringUtil.repeat("a", charactersToType) + "<caret>\n", caretCount)); }