code: private Method getAccessorMethod(TypeToken<?> type) {
      Class<?> rawType = type.getRawType();
      if (rawType.isPrimitive()) {
        return getMethod(rawType,
                         String.format("get%c%s",
                                       Character.toUpperCase(rawType.getName().charAt(0)),
                                       rawType.getName().substring(1)),
                         Object.class);
      } else {
        return getMethod(Object.class, "get", Object.class);
      }
    }
docs: Returns the method for calling {@link FieldAccessor} based on the data type.
  @param type Data type.
  @return A {@link org.objectweb.asm.commons.Method} for calling {@link FieldAccessor}.