public function up()
{
$this->searchAndReplace('TYPO3\\Flow\\Resource', 'TYPO3\\Flow\\ResourceManagement');
$this->searchAndReplaceRegex('/ResourceManagement\\\\Resource(?![a-zA-Z])/', 'ResourceManagement\\PersistentResource');
$this->searchAndReplaceRegex('/(?<![a-zA-Z])Resource::class/', 'PersistentResource::class');
$this->searchAndReplaceRegex('/ResourceManagement\\\\Storage\\\\Object/', 'ResourceManagement\\Storage\\StorageObject');
$this->searchAndReplace('Storage\\Object::class', 'Storage\\StorageObject::class');
$this->showWarning('Standalone uses of "Resource" or (Storage) "Object" are hard to adjust automatically, so you might need to do some more adjustments.');
}