docs: public static Class<?>[] resolveTypeArguments(Class<?> clazz, Class<?> genericIfc) {
          ResolvableType type = ResolvableType.forClass(clazz).as(genericIfc);
          if (!type.hasGenerics() || type.isEntirelyUnresolvable()) {
              return null;
          }
          return type.resolveGenerics(Object.class);
      }