protected boolean validateIndividualItems(@NotNull List<JsonValueAdapter> list,
                                                 JsonSchemaObject schema,
                                                 JsonValidationHost consumer,
                                                 JsonComplianceCheckerOptions options) {
    var isValid = true;

    if (schema.getItemsSchema() != null) {
      for (JsonValueAdapter item : list) {
        consumer.checkObjectBySchemaRecordErrors(schema.getItemsSchema(), item);
        isValid &= consumer.getErrors().isEmpty();
        if (!isValid && options.shouldStopValidationAfterAnyErrorFound()) return false;
      }
    }
    else if (schema.getItemsSchemaList() != null) {
      var iterator = schema.getItemsSchemaList().iterator();
      for (JsonValueAdapter arrayValue : list) {
        if (iterator.hasNext()) {
          consumer.checkObjectBySchemaRecordErrors(iterator.next(), arrayValue);
          isValid &= consumer.getErrors().isEmpty();
          if (!isValid && options.shouldStopValidationAfterAnyErrorFound()) return false;
        }
        else {
          if (!Boolean.TRUE.equals(schema.getAdditionalItemsAllowed())) {
            consumer.error(JsonBundle.message("schema.validation.array.no.extra"), arrayValue.getDelegate(), JsonErrorPriority.LOW_PRIORITY);
            isValid = false;
            if (options.shouldStopValidationAfterAnyErrorFound()) return false;
          }
          else if (schema.getAdditionalItemsSchema() != null) {
            consumer.checkObjectBySchemaRecordErrors(schema.getAdditionalItemsSchema(), arrayValue);
            isValid &= consumer.getErrors().isEmpty();
            if (!isValid && options.shouldStopValidationAfterAnyErrorFound()) return false;
          }
        }
      }
    }

    return isValid;
  }
protected boolean validateIndividualItems(@NotNull List<JsonValueAdapter> list,
                                                 JsonSchemaObject schema,
                                                 JsonValidationHost consumer,
                                                 JsonComplianceCheckerOptions options)