docs: public static GenericMetadataSupport inferFrom(Type type) {
          Checks.checkNotNull(type, "type");
          if (type instanceof Class) {
              return new FromClassGenericMetadataSupport((Class<?>) type);
          }
          if (type instanceof ParameterizedType) {
              return new FromParameterizedTypeGenericMetadataSupport((ParameterizedType) type);
          }
  
          throw new MockitoException("Type meta-data for this Type (" + type.getClass().getCanonicalName() + ") is not supported : " + type);
      }