protected static boolean validateArrayLengthHeuristically(@NotNull JsonValueAdapter array,
                                                         @NotNull List<JsonValueAdapter> list,
                                                         JsonSchemaObject schema,
                                                         JsonValidationHost consumer,
                                                         JsonComplianceCheckerOptions options) {
    // these two are not correct by the schema spec, but are used in some schemas
    if (schema.getMinLength() != null && list.size() < schema.getMinLength()) {
      consumer.error(JsonBundle.message("schema.validation.array.shorter.than", schema.getMinLength()), array.getDelegate(), JsonErrorPriority.LOW_PRIORITY);
      return false;
    }
    if (schema.getMaxLength() != null && list.size() > schema.getMaxLength()) {
      consumer.error(JsonBundle.message("schema.validation.array.longer.than", schema.getMaxLength()), array.getDelegate(), JsonErrorPriority.LOW_PRIORITY);
      return false;
    }
    return true;
  }
protected static boolean validateArrayLengthHeuristically(@NotNull JsonValueAdapter array,
                                                         @NotNull List<JsonValueAdapter> list,
                                                         JsonSchemaObject schema,
                                                         JsonValidationHost consumer,
                                                         JsonComplianceCheckerOptions options)