public Set<OperationShape> getContainedOperations(ToShapeId entity) {
        return operations.getOrDefault(entity.toShapeId(), SetUtils.of());
    }
Get all operations in service or resource closure.

@param entity Service or resource shape ID.
@return Returns all operations in the service closure.
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/TopDownIndex.java