docs: static ResolvableType forType(Type type, TypeProvider typeProvider, VariableResolver variableResolver) {
          if (type == null && typeProvider != null) {
              type = TypeWrapper.forTypeProvider(typeProvider);
          }
          if (type == null) {
              return NONE;
          }
  
          // For simple Class references, build the wrapper right away -
          // no expensive resolution necessary, so not worth caching...
          if (type instanceof Class) {
              return new ResolvableType(type, typeProvider, variableResolver, null);
          }
  
          return new ResolvableType(type, typeProvider, variableResolver);
      }