public static Severity fromNode(Node node) {
        String value = node.expectStringNode().expectOneOf(NAMES);
        return Severity.valueOf(value);
    }
Creates a severity value from a node.

@param node Node to parse.
@return Returns the parsed Severity.
@throws ExpectationNotMetException if the node is invalid.
smithy-model/src/main/java/software/amazon/smithy/model/validation/Severity.java