public static List<PsiReferenceExpression> getVariableReferences(@NotNull PsiVariable variable) {
    PsiFile file = variable.getContainingFile();
    if (file == null) return List.of();
    return LocalRefUseInfo.forFile(file).getVariableReferences(variable, null);
  }
public static List<PsiReferenceExpression> getVariableReferences(@NotNull PsiVariable variable)