public static PsiReference @NotNull [] getReferences(PsiElement thisElement) {
    PsiReference ref = thisElement.getReference();
    return ref != null ? new PsiReference[]{ref} : PsiReference.EMPTY_ARRAY;
  }
public static PsiReference @NotNull [] getReferences(PsiElement thisElement)