public static ChangeType fromNode(Node node) {
            try {
                return ChangeType.valueOf(node.expectStringNode().getValue().toUpperCase(Locale.ENGLISH));
            } catch (RuntimeException e) {
                String message = "Expected a string containing a valid trait diff type: " + e.getMessage();
                throw new ExpectationNotMetException(message, node);
            }
        }
Creates a ChangeType value from a node.

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