code: public static String rawType(String type) {
      int lessThanIndex = type.indexOf('<');
      if (lessThanIndex != -1) {
        return type.substring(0, lessThanIndex);
      }
      return type;
    }
docs: Build a string representation of the raw type for a (optionally generic) type.