public static PsiReference createTypeOrElementOrAttributeReference(final @NotNull PsiElement element) {
    return createTypeOrElementOrAttributeReference(element, null);
  }
public static PsiReference createTypeOrElementOrAttributeReference(final @NotNull PsiElement element)