private static boolean hasOwnAttributes(XmlElementDescriptor descriptor, XmlTag tag) {
    return ContainerUtil.find(descriptor.getAttributesDescriptors(tag),
                              attr -> attr instanceof HtmlAttributeDescriptorImpl && HtmlUtil.isOwnHtmlAttribute(attr)) != null;
  }
private static boolean hasOwnAttributes(XmlElementDescriptor descriptor, XmlTag tag)