@Override
    protected Node createNode() {
        return definitions.stream().map(EnumDefinition::toNode).collect(ArrayNode.collect(getSourceLocation()));
    }
Checks if all of the constants of an enum define a name.

<p>Note that either all constants must have a name or no constants can
have a name.

@return Returns true if all constants define a name.
smithy-model/src/main/java/software/amazon/smithy/model/traits/EnumTrait.java