void () { myFixture.configureByText("test.html", "<html lang='en'>la<caret>n"); PsiElement originalElement = myFixture.getFile().findElementAt(myFixture.getEditor().getCaretModel().getOffset()); DocumentationProvider documentationProvider = DocumentationManager.getProviderFromElement(originalElement); PsiElement element = documentationProvider.getDocumentationElementForLookupItem(originalElement.getManager(), "lang", originalElement); assertNull(element); }