void () { int count = 2000; String bytesOriginal = String.join(",\n", Collections.nCopies(count, "0")); String bytesResult = String.join(", ", Collections.nCopies(count, "0")); String text = """ class X { <selection>byte[] data = {$bytes$}</selection>; }"""; String inputText = text.replace("$bytes$", bytesOriginal); PlatformTestUtil.startPerformanceTest(getTestName(false), 2500, () -> executeAction(IdeActions.ACTION_EDITOR_JOIN_LINES)) .setup(() -> configureFromFileText("X.java", inputText)) .assertTiming(); String outputText = text.replace("$bytes$", bytesResult); checkResultByText(outputText); }