protected function checksum(FileInterface $entity)
    {
        $currentHash = $this->fileManager->checksumTemporaryFileByName($entity->getName());
        
        if ($entity->getHash() !== $currentHash){
            throw new FileHashChangedException($entity->getName());
        }
    }