public static boolean isLocalOrParameter(@Nullable PsiElement variable) {
    return variable instanceof GrVariable && !(variable instanceof GrField);
  }
public static boolean isLocalOrParameter(@Nullable PsiElement variable)