@SuppressWarnings("unchecked")
        public B removeResource(ToShapeId id) {
            resources.get().remove(id.toShapeId());
            return (B) this;
        }
Builder used to create a Service or Resource shape.
@param <B> Concrete builder type.
@param <S> Shape type being created.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/EntityShape.java