@Override
    public boolean equals(Object other) {
        if (other == null || other.getClass() != getClass()) {
            return false;
        }

        if (this == other) {
            return true;
        }

        Trait b = (Trait) other;
        if (!toShapeId().equals(b.toShapeId())) {
            return false;
        }

        return node.equals(b.toNode());
    }
Trait implementation for traits that are an empty object.
smithy-model/src/main/java/software/amazon/smithy/model/traits/AnnotationTrait.java