code: public Class<?> resolveGenericOf(final Type type) {
          final List<Class<?>> res = resolveGenericsOf(type);
          return res.isEmpty() ? null : res.get(0);
      }
docs: Shortcut for {@link #resolveGenericsOf(Type)} useful for single generic types or
  when just first generic required.
  <p>
  Check if type containing generics, belonging to different context in current hierarchy and
  automatically change context to properly resolve generics. Fails when it is impossible to correctly
  resolve generics (preventing incorrect usage).
  
  @param type type to resolve generic
  @return first resolved generic or null if type does not use generics