code: private static TypeMirror boxedType(TypeMirror type, Types types) {
      return type.getKind().isPrimitive()
          ? types.boxedClass(MoreTypes.asPrimitiveType(type)).asType()
          : type;
    }
docs: If {@code type} is a primitive type, returns the boxed equivalent; otherwise returns
  {@code type}.