docs: public <K> K getField(String key) {
      K value = getNullableField(key);
      if (value == null) {
        throw new IllegalStateException("Value of index field is null: " + key);
      }
      return value;
    }