Severity detectAndGetSeverity(StandardOptions standardOptions) {
        if (severity == null) {
            if (standardOptions.quiet()) {
                severity = Severity.DANGER;
            } else {
                severity = Severity.WARNING;
            }
        }
        return severity;
    }
Set and get the severity level, taking into account standard options that affect the default.

@param standardOptions  Standard options to query if no severity is explicitly set.
@return Returns the resolved severity option.
smithy-cli/src/main/java/software/amazon/smithy/cli/commands/ValidatorOptions.java