public static boolean isDeclarationAssignment(GrReferenceExpression refExpr) {
    return isAssignmentLhs(refExpr) && isScriptPropertyAccess(refExpr);
  }
public static boolean isDeclarationAssignment(GrReferenceExpression refExpr)