private Optional<ValidationEvent> validateService(ServiceShape service, ServiceTrait trait) {
        String value = trait.getSdkId();

        try {
            validateServiceId(value);
            return Optional.empty();
        } catch (IllegalArgumentException e) {
            return Optional.of(danger(service, trait, e.getMessage()));
        }
    }
Validates a service ID value.

@param serviceId Service ID to validate.
@throws IllegalArgumentException if the service ID is invalid.
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/SdkServiceIdValidator.java