class ParserParams {
    public List<ParserMessage> messages = null;
    public boolean skip = false;
    public ParsedOptionStatus status = ParsedOptionStatus.VALID;

    public ParserParams add(ParserMessage message) {<FILL_FUNCTION_BODY>}

    public ParserParams escalate(ParsedOptionStatus other) {
        status = status.escalate(other);
        return this;
    }
}

        if (messages == null) messages = new ArrayList<>();
        messages.add(message);
        escalate(message.getStatus());
        return this;
    
<no_super_class>