void () { myFixture.configureByFiles("interfaceExtensionPointDocumentation.xml", "bar/MyExtension.java"); final PsiElement docElement = DocumentationManager.getInstance(getProject()).findTargetElement(myFixture.getEditor(), myFixture.getFile()); DocumentationProvider provider = DocumentationManager.getProviderFromElement(docElement); String epDefinition = "[" + getModule().getName() + "]" + "<br/><b>foo.bar</b> (interfaceExtensionPointDocumentation.xml)<br/>" + "<a href=\"psi_element://bar.MyExtension\"><code>MyExtension</code></a>"; assertEquals(epDefinition, provider.getQuickNavigateInfo(docElement, getOriginalElement())); assertEquals( """ <div class="definition"><pre><b>foo.bar</b><br/>interfaceExtensionPointDocumentation.xml</pre></div><div class="content"><a href="https://jb.gg/ipe?extensions=foo.bar">Show Usages in IntelliJ Platform Explorer</a></div><div class="content"><h2>Extension Point Implementation</h2><div class="bottom"><icon src="AllIcons.Nodes.Package">&nbsp;<a href="psi_element://bar"><code><span style="color:#000000;">bar</span></code></a></div><div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">interface</span> <span style="color:#000000;">MyExtension</span></pre></div><div class='content'> My Extension Javadoc. </div><table class='sections'><p></table></div>""", provider.generateDoc(docElement, getOriginalElement())); }