code: public static Expression getterX(ClassNode annotatedNode, Expression receiver, PropertyNode pNode) {
          ClassNode owner = pNode.getDeclaringClass();
          if (annotatedNode.equals(owner)) {
              return callX(receiver, getterName(annotatedNode, pNode));
          }
          return propX(receiver, pNode.getName());
      }
docs: This method is similar to {@link #propX(Expression, Expression)} but will make sure that if the property
  being accessed is defined inside the classnode provided as a parameter, then a getter call is generated
  instead of a field access.
  @param annotatedNode the class node where the property node is accessed from
  @param receiver the object having the property
  @param pNode the property being accessed
  @return a method call expression or a property expression