void () { String text = " b\n".repeat(10_000); String expected = "b\n".repeat(10_000).trim(); PsiFile file = myFixture.configureByText("a.java", "/*\n" + text + "*/"); PsiComment comment = assertInstanceOf(file.findElementAt(10), PsiComment.class); TextContentBuilder builder = TextContentBuilder.FromPsi.removingIndents(" "); PlatformTestUtil.startPerformanceTest("TextContent building with indent removing", 200, () -> { assertEquals(expected, builder.build(comment, TextContent.TextDomain.COMMENTS).toString()); }).assertTiming(); }