private function decryptFile($fileEntity, KeyData $keyData)
    {
        if ($keyData) {
            $encryptedContent = $fileEntity->getContent();
            if ($encryptedContent) {
                $encType = CryptographyProviderInterface::FILE_ENCRYPTION;
                $decryptedContent = $this->cryptographyProvider->decrypt($encryptedContent, $keyData, $encType);

                $fileEntity->setContent($decryptedContent);
            }
        }
    }