docs: public static boolean isTypeOf(Type type, Class<?> clazz) {
          if (Class.class.isInstance(type)) {
              return clazz.isAssignableFrom(Class.class.cast(type));
          }
          if (ParameterizedType.class.isInstance(type)) {
              return isTypeOf(ParameterizedType.class.cast(type).getRawType(), clazz);
          }
          return false;
      }