@Override
  public @NotNull Collection<? extends PsiSymbolReference> getReferences(@NotNull PsiExternalReferenceHost element,
                                                                         @NotNull PsiSymbolReferenceHints hints) {
    if (!(element instanceof XmlNamedReferenceHost host)) {
      return Collections.emptyList();
    }
    final Collection<XmlNamedReferenceProviderBean> beans = NamedReferenceProviders.getInstance().getNamedReferenceProviderBeans(host);
    final List<PsiSymbolReference> result = new SmartList<>();
    for (XmlNamedReferenceProviderBean bean : beans) {
      result.addAll(bean.getInstance().getReferences(element, hints));
    }
    return result;
  }
@Override
  public @NotNull Collection<? extends PsiSymbolReference> getReferences(@NotNull PsiExternalReferenceHost element,
                                                                         @NotNull PsiSymbolReferenceHints hints)