@Override
    public List<ValidationEvent> validate(Model model) {
        List<ValidationEvent> events = new ArrayList<>();
        for (OperationShape operation : model.getOperationShapesWithTrait(ExamplesTrait.class)) {
            events.addAll(validateExamples(model, operation, operation.expectTrait(ExamplesTrait.class)));
        }

        return events;
    }
Validates that examples traits are valid for their operations.
smithy-model/src/main/java/software/amazon/smithy/model/validation/validators/ExamplesTraitValidator.java