fn owned_pins<'a>( indexed: &'a IndexedDocument<'a>, owner: BlockId, ) -> impl Iterator<Item = (PinId, &'a Pin)> + 'a