docs: private void writeConditions(List<Condition> conditions)
              throws JsonGenerationException, IOException {
          Map<String, ConditionsByKey> conditionsByType = groupConditionsByTypeAndKey(conditions);
  
          writeJsonObjectStart(JsonDocumentFields.CONDITION);
  
          ConditionsByKey conditionsByKey;
          for (Map.Entry<String, ConditionsByKey> entry : conditionsByType
                  .entrySet()) {
              conditionsByKey = conditionsByType.get(entry.getKey());
  
              writeJsonObjectStart(entry.getKey());
              for (String key : conditionsByKey.keySet()) {
                  writeJsonArray(key, conditionsByKey.getConditionsByKey(key));
              }
              writeJsonObjectEnd();
          }
          writeJsonObjectEnd();
      }