public static ValidationSeverity fromPayloads(Set<Class<? extends Payload>> payloads) {
        ValidationSeverity result;
        if (payloads == null || payloads.isEmpty()) {
            // ERROR is assumed if we have no other info
            result = ERROR;
        } else {
            if (payloads.contains(Error.class)) {
                // ERROR trumps WARNING
                result = ERROR;
            } else if (payloads.contains(Warning.class)) {
                // No errors but a warning
                result = WARNING;
            } else {
                // None of either so assume ERROR
                result = ERROR;
            }
        }
        return result;
    }
Severities for jakarta.validation.  Use it like this:

<pre>
{@code
@AssertFalse(message = "some message if not false", payload = ValidationSeverity.Warning.class)
}
</pre>
stroom-util-shared/src/main/java/stroom/util/shared/validation/ValidationSeverity.java