@Override
      public void visitXmlElement(final @NotNull XmlElement element) {
        if (element instanceof XmlElementContentSpec ||
            element instanceof XmlEntityRef
          ) {
          doCheckRefs(element, holder);
        }
      }
@Override
      public void visitXmlElement(final @NotNull XmlElement element)