private static boolean findEvent(
            ValidatedResult<Model> result,
            String eventId,
            ToShapeId id,
            Severity severity,
            String contains
    ) {
        for (ValidationEvent event : result.getValidationEvents()) {
            if (event.getShapeId().filter(sid -> sid.equals(id.toShapeId())).isPresent()
                    && event.getSeverity() == severity
                    && event.containsId(eventId)
                    && event.getMessage().contains(contains)) {
                return true;
            }
        }
        return false;
    }
Creates a matcher that ensures a member is not marked with @default or @required.

@param result The validated result to check.
@return Returns the created matcher.
smithy-model/src/test/java/software/amazon/smithy/model/ShapeMatcher.java