void () { configureAndGetCallExprUnderCaret("mainQualified.py"); DocumentationProvider docProvider = new PythonDocumentationProvider(); PsiElement leaf = myFixture.getFile().findElementAt(myFixture.getCaretOffset()); DocumentationManager docManager = DocumentationManager.getInstance(myFixture.getProject()); PsiElement docTarget = docManager.findTargetElement(myFixture.getEditor(), leaf.getTextOffset(), myFixture.getFile(), leaf); doPerformanceTestResettingCaches("Rendering Quick Documentation", 100, () -> { String doc = docProvider.generateDoc(docTarget, leaf); // Smoke test that it's the right documentation. assertTrue(doc.contains("def <b>func</b>(x")); }); }