private void failWhenNoMatch(FromSourceLocation location, IdRefTrait trait, Emitter emitter, String message) {
        emitter.accept(location, Severity.ERROR, trait.getErrorMessage().orElse(message));
    }
Validates that the value contained in a string shape is a valid shape ID
and that the shape ID targets a shape that is in the set of shapes
matching the selector.
smithy-model/src/main/java/software/amazon/smithy/model/validation/node/IdRefPlugin.java