@NotNull
  public static @NlsSafe String getDescriptiveName(@NotNull PsiElement psiElement) {
    PsiUtilCore.ensureValid(psiElement);

    if (psiElement instanceof PsiMetaOwner psiMetaOwner) {
      PsiMetaData metaData = psiMetaOwner.getMetaData();
      if (metaData != null) return getMetaDataName(metaData);
    }

    if (psiElement instanceof PsiFile) {
      return ((PsiFile)psiElement).getName();
    }

    return LanguageFindUsages.getDescriptiveName(psiElement);
  }
@NotNull
  public static @NlsSafe String getDescriptiveName(@NotNull PsiElement psiElement)