public List<ValidationEvent> getValidationEvents(Severity severity) {
        return getValidationEvents().stream()
                .filter(event -> event.getSeverity() == severity)
                .collect(Collectors.toList());
    }
Get validation events of a particular severity.

@param severity Severity to get.
@return Returns a list of events with the given severity.
smithy-model/src/main/java/software/amazon/smithy/model/validation/ValidatedResult.java