code: public static String typeToString(TypeMirror type) {
      StringBuilder result = new StringBuilder();
      typeToString(type, result, '.');
      return result.toString();
    }
docs: Returns a string for {@code type}. Primitive types are always boxed.