private Severity getSeverity(NumberNode node, Context context) {
        boolean zeroValueWarning = context
                .hasFeature(NodeValidationVisitor.Feature.RANGE_TRAIT_ZERO_VALUE_WARNING);
        boolean rangeTraitWarning = context.hasFeature(NodeValidationVisitor.Feature.ALLOW_CONSTRAINT_ERRORS);
        return (zeroValueWarning && node.isZero()) || rangeTraitWarning ? Severity.WARNING : Severity.ERROR;
    }
Validates the range trait on number shapes or members that target them.
smithy-model/src/main/java/software/amazon/smithy/model/validation/node/RangeTraitPlugin.java