void (@NotNull XmlAttribute attribute, @NotNull ProblemsHolder holder, boolean isOnTheFly) { if (HtmlUtil.isHtmlTagContainingFile(attribute)) { if (!HtmlUtil.isHtml5Context(attribute)) { return; } XmlAttributeDescriptor descriptor = attribute.getDescriptor(); if (descriptor == null || descriptor.getClass() != HtmlAttributeDescriptorImpl.class) { return; } String name = ((HtmlAttributeDescriptorImpl)descriptor).isCaseSensitive() ? attribute.getName() : StringUtil.toLowerCase(attribute.getName()); MdnSymbolDocumentation documentation = getHtmlMdnDocumentation(attribute, null); boolean deprecatedInHtml5 = "align".equals(name) || (documentation != null && isDeprecatedOrObsolete(documentation.getApiStatus())); if (!deprecatedInHtml5) { return; } holder.registerProblem(attribute.getNameElement(), GlobalInspectionUtil.createInspectionMessage(HtmlToolsBundle.message("html.inspections.deprecated.attribute")), ProblemHighlightType.LIKE_DEPRECATED ); } }