code: public Type resolveType(TypeVariable<?> variable) {
          Type resolvedType = this.resolvedTypeVariables.get(variable);
          if (resolvedType == null) {
              return variable; // we are not able to resolve
          }
          return resolvedType;
      }
docs: Resolves a given type variable. This is achieved by a lookup in the {@link #resolvedTypeVariables} map.