@Override
  public @Nullable UsageType getUsageType(@NotNull PsiElement element) {
    final PsiFile psiFile = element.getContainingFile();
    if (psiFile != null && XMLLanguage.INSTANCE.equals(psiFile.getLanguage()) &&
        DomManager.getDomManager(element.getProject()).getFileElement((XmlFile)psiFile, DomElement.class) != null) {
      return DOM_USAGE_TYPE;
    }
    return null;
  }
@Override
  public @Nullable UsageType getUsageType(@NotNull PsiElement element)