@Contract("_, null -> false")
  public static boolean variableIsUsed(@NotNull PsiVariable variable, @Nullable PsiElement context) {
    if (context == null) return false;
    PsiFile file = context.getContainingFile();
    PsiFile variableFile = variable.getContainingFile();
    if (variableFile != null && file == variableFile && file.isPhysical()) {
      return LocalRefUseInfo.forFile(file).isVariableUsed(variable, context);
    }
    return VariableUsedVisitor.isVariableUsedIn(variable, context);
  }
@Contract("_, null -> false")
  public static boolean variableIsUsed(@NotNull PsiVariable variable, @Nullable PsiElement context)