@Override
    public int hashCode() {
        int h = hash;

        if (h == 0) {
            h = Objects.hash(getType(), getId());
            hash = h;
        }

        return h;
    }
Gets the traits introduced by the shape and not inherited
from mixins.

@return Returns the introduced traits.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/Shape.java