Function findAllRefs