docs: @SuppressWarnings("unchecked")
    static <T> TypeInfoImpl<T> typeInfoFor(Class<T> sourceType, InheritingConfiguration configuration) {
      TypeInfoKey pair = new TypeInfoKey(sourceType, configuration);
      TypeInfoImpl<T> typeInfo = (TypeInfoImpl<T>) cache.get(pair);
  
      if (typeInfo == null) {
        synchronized (cache) {
          typeInfo = (TypeInfoImpl<T>) cache.get(pair);
          if (typeInfo == null) {
            typeInfo = new TypeInfoImpl<T>(null, sourceType, configuration);
            cache.put(pair, typeInfo);
          }
        }
      }
  
      return typeInfo;
    }