code: private Field resolveField(Field inputField) {
      if (inputField.isList()) {
        return inputField.getListElemField();
      } else if (inputField.isSet()) {
        return inputField.getSetElemField();
      } else {
        return inputField;
      }
    }
docs: When dealing with a Set/List, we want to retrieve the relevant Field type