MdnSymbolDocumentation (PsiElement element, PsiElement originalElement) { XmlTag tagContext = findTagContext(originalElement); if (tagContext != null && !(tagContext instanceof HtmlTag)) return null; MdnSymbolDocumentation result = getHtmlMdnDocumentation(element, tagContext); if (result == null && tagContext == null) { PsiElement declaration = doIfNotNull(findDescriptor(element.getManager(), element.getText(), originalElement), PsiMetaData::getDeclaration); if (declaration != null) { result = getHtmlMdnDocumentation(declaration, null); } } return result; }