@Override
    public boolean equals(Object other) {
        return other instanceof StringNode && value.equals(((StringNode) other).getValue());
    }
Gets the value of the string as a ShapeId if it is a valid Shape ID.

@return Returns the optional Shape ID.
smithy-model/src/main/java/software/amazon/smithy/model/node/StringNode.java