docs: public Type resolveType(Type type) {
          if (type instanceof Class) {
              Type resolvedType = types.get(type);
              if (resolvedType != null) {
                  return resolvedType;
              }
          }
          return resolver.resolveType(type);
      }