code: protected void createGetterMethod(ClassNode declaringClass, PropertyNode propertyNode, String getterName,
                                        Statement getterBlock, List<AnnotationNode> annotations) {
          int mod = propertyNode.getModifiers() | Modifier.FINAL;
          MethodNode getter = new MethodNode(getterName, mod, propertyNode.getType(), Parameter.EMPTY_ARRAY,
              ClassNode.EMPTY_ARRAY, getterBlock);
          if (annotations != null) getter.addAnnotations(annotations);
          getter.setSynthetic(true);
          declaringClass.addMethod(getter);
      }
docs: Creates a getter method and adds it to the declaring class.
  
  @param declaringClass The class to which the method is added
  @param propertyNode   The property node being accessed by this getter
  @param getterName     The name of the getter method
  @param getterBlock    The code body of the method