@Override
            public boolean contains(Object o) {
                return o instanceof Shape && shapeMap.containsKey(((Shape) o).getId());
            }
Converts the model to an immutable Set of shapes.

@return Returns an unmodifiable set of shapes.
smithy-model/src/main/java/software/amazon/smithy/model/Model.java