code: public List<String> getMessages() {
          List<String> errorMessages = new ArrayList<>();
          for (ValidationError error : errors) {
              errorMessages.add(error.getMessage());
          }
          return errorMessages;
      }
docs: Collects error message string as list from all the errors in the container
  @return error message as list of string