code: public static Type getBound(WildcardType wildcardType) {
      Type[] lowerBounds = wildcardType.getLowerBounds();
      if (lowerBounds.length != 0) {
        return lowerBounds[0];
      }
      return wildcardType.getUpperBounds()[0];
    }
docs: Returns the only bound of the given wildcard type.
  
  @param wildcardType wildcard type
  @return only bound or {@code Object.class} for none