void () { List<String> randomMethodNames = generateRandomMethodNames(); myFixture.configureByText("plugin.xml", generatePluginXmlText(randomMethodNames)); PsiClass psiClass = myFixture.addClass(generateJavaClassText(randomMethodNames)); PlatformTestUtil.startPerformanceTest("Locating extension tag by PsiClass", 2000, () -> { List<ExtensionCandidate> result = locateExtensionsByPsiClass(psiClass); assertSize(1, result); }).attempts(1).assertTiming(); }