void () { String text = "b<unknownTag>x</unknownTag>".repeat(10_000); String expected = "b".repeat(10_000); PsiFile file = myFixture.configureByText("a.java", "/**\n" + text + "*/"); PsiDocComment comment = PsiTreeUtil.findElementOfClassAtOffset(file, 10, PsiDocComment.class, false); TextExtractor extractor = new JavaTextExtractor(); PlatformTestUtil.startPerformanceTest("TextContent building with HTML removal", 200, () -> { assertEquals(expected, extractor.buildTextContent(comment, TextContent.TextDomain.ALL).toString()); }).assertTiming(); }