code: def dependency_attributes_for(inventory_collections)
        attributes = Set.new
        inventory_collections.each do |inventory_collection|
          attributes += filtered_dependency_attributes.select { |_key, value| value.include?(inventory_collection) }.keys
        end
        attributes
      end
docs: Returns what attributes are causing a dependencies to certain InventoryCollection objects.
  
   @param inventory_collections [Array<InventoryRefresh::InventoryCollection>]
   @return [Array<InventoryRefresh::InventoryCollection>] attributes causing the dependencies to certain
           InventoryCollection objects