code: private void generateGetter(Field field) {
      if (isPrivate) {
        invokeReflection(getMethod(Object.class, "get", Object.class), getterSignature());
      } else {
        directGetter(field);
      }
  
      if (field.getType().isPrimitive()) {
        primitiveGetter(field);
      }
    }
docs: Generates the getter method and optionally the primitive getter.
  @param field The reflection field object.