https://github.com/magento/magento2/blob/2.0.0/app/code/Magento/MediaStorage/Model/File/Storage/Synchronization.php#L59-L60
Should be
/** @var \Magento\Framework\Filesystem\File\WriteInterface $file */
https://github.com/magento/magento2/issues/2558
See also: