code: protected void createSetterMethod(ClassNode declaringClass, PropertyNode propertyNode, String setterName, Statement setterBlock) {
          MethodNode setter = new MethodNode(
                  setterName,
                  propertyNode.getModifiers(),
                  ClassHelper.VOID_TYPE,
                  params(param(propertyNode.getType(), "value")),
                  ClassNode.EMPTY_ARRAY,
                  setterBlock);
          setter.setSynthetic(true);
          // add it to the class
          declaringClass.addMethod(setter);
      }
docs: Creates a setter method with the given body.
  
  @param declaringClass the class to which we will add the setter
  @param propertyNode          the field to back the setter
  @param setterName     the name of the setter
  @param setterBlock    the statement representing the setter block