public Optional<Shape> getShape(ShapeId id) {
        return Optional.ofNullable(shapeMap.get(id));
    }
Attempts to retrieve a {@link Shape} by {@link ShapeId}.

@param id Shape to retrieve by ID.
@return Returns the optional shape.
smithy-model/src/main/java/software/amazon/smithy/model/Model.java