void () { final Map<String, PsiElement> marks = loadTest(); final PsiElement originalElement = marks.get("<the_ref>"); assertNotNull("<the_ref> marker is missing in test data", originalElement); final DocumentationManager manager = DocumentationManager.getInstance(myFixture.getProject()); final PsiElement target = manager.findTargetElement(myFixture.getEditor(), originalElement.getTextOffset(), myFixture.getFile(), originalElement); checkByHTML(myProvider.generateDoc(target, originalElement)); }