void () { String text = "<a/>b".repeat(10_000); String expected = "b".repeat(10_000); PsiFile file = myFixture.configureByText("a.xml", text); TextContentBuilder builder = TextContentBuilder.FromPsi.excluding(e -> e instanceof XmlTag); PlatformTestUtil.startPerformanceTest("TextContent building with concatenation", 200, () -> { assertEquals(expected, builder.build(file, TextContent.TextDomain.PLAIN_TEXT).toString()); }).assertTiming(); }