docs: public static Type getDeclaredBeanType(Class<?> clazz) {
          Type[] actualTypeArguments = Reflections.getActualTypeArguments(clazz);
          if (actualTypeArguments.length == 1) {
              return actualTypeArguments[0];
          } else {
              return null;
          }
      }