public List<Reference> getResourceReferences(ShapeId shapeId) {
        return getReferences().stream()
                .filter(reference -> reference.getResource().equals(shapeId))
                .collect(Collectors.toList());
    }
Gets a list of all references to a particular shape.

@param shapeId Shape ID to search for.

@return Returns the list of found references.
smithy-model/src/main/java/software/amazon/smithy/model/traits/ReferencesTrait.java