@Override
  public PsiReference[] getValueReferences(XmlElement element, @NotNull String text) {
    if (element != null && element.getContainingFile() instanceof HtmlCompatibleFile)
      return new HtmlEnumeratedReferenceSet(element, this).getPsiReferences();
    else
      //noinspection unchecked
      return super.getValueReferences(element, text);
  }
@Override
  public PsiReference[] getValueReferences(XmlElement element, @NotNull String text)