code: public static Class<?> getListInnerClassFromGenericType(Type genericType) {
          ParameterizedType innerClass = (ParameterizedType) genericType;
          return (Class<?>) innerClass.getActualTypeArguments()[0];
      }
docs: Gets list inner class from generic type.
  
  @param genericType the generic type
  @return the list inner class from generic type