code: static String getTypeVariableDefinition(TypeVariable variable)
        throws NoSourceNameException {
      Type[] bounds = variable.getBounds();
      if (bounds.length == 0 || (bounds.length == 1 && bounds[0].equals(Object.class))) {
        return variable.getName();
      }
      return getBoundedSourceName(variable.getName(), bounds, "extends");
    }
docs: Visible for testing