code: protected List<MethodNode> findMethodsWithGenerated(ClassNode receiver, String name) {
          List<MethodNode> methods = receiver.getMethods(name);
          if (methods.isEmpty() || receiver.isResolved()) return methods;
          List<MethodNode> result = addGeneratedMethods(receiver, methods);
  
          return result;
      }
docs: This method returns the list of methods named against the supplied parameter that
  are defined on the specified receiver, but it will also add "non existing" methods
  that will be generated afterwards by the compiler, for example if a method is using
  default values and that the specified class node isn't compiled yet.
  
  @param receiver the receiver where to find methods
  @param name     the name of the methods to return
  @return the methods that are defined on the receiver completed with stubs for future methods