code: public static Map<GenericsType, GenericsType> makeDeclaringAndActualGenericsTypeMap(ClassNode declaringClass, ClassNode actualReceiver) {
          return doMakeDeclaringAndActualGenericsTypeMap(declaringClass, actualReceiver, false).getV1();
      }
docs: map declaring generics type to actual generics type, e.g. GROOVY-7204:
  declaring generics types:      T,      S extends Serializable
  actual generics types   : String,      Long
  
  the result map is [
  T: String,
  S: Long
  ]
  
  The resolved types can not help us to choose methods correctly if the argument is a string:  T: Object, S: Serializable
  so we need actual types:  T: String, S: Long