boolean () { boolean html4Deprecated = ourHtml4DeprecatedTags.contains(myDelegate.getName()); MdnSymbolDocumentation documentation = doIfNotNull( myDelegate.getDeclaration(), declaration -> MdnDocumentationKt.getHtmlMdnDocumentation(declaration, null)); boolean html5Deprecated = documentation != null && WebSymbolApiStatus.isDeprecatedOrObsolete(documentation.getApiStatus()) || ourHtml5DeprecatedTags.contains(myDelegate.getName()); if (!html4Deprecated && !html5Deprecated) { return false; } boolean inHtml5 = HtmlUtil.isHtml5Schema(getNSDescriptor()); return inHtml5 && html5Deprecated || !inHtml5 && html4Deprecated; }