private Severity getSeverity(Context context) {
        return context.hasFeature(NodeValidationVisitor.Feature.ALLOW_CONSTRAINT_ERRORS)
                ? Severity.WARNING
                : Severity.ERROR;
    }
Validates the length trait on map shapes or members that target them.
smithy-model/src/main/java/software/amazon/smithy/model/validation/node/MapLengthPlugin.java