code: public void add(ValidationResult validation) {
      correct &= validation.correct;
      if (!validate) return;
      errors.addAll(validation.errors);
      warnings.addAll(validation.warnings);
    }
docs: Adds a validation result to this.
  
  @param validation the validation to add