protected function renameAndReorderFromRequest(?array $media = []): self 	{ 		$fileIds = $media[self::IDS_KEY] ?? [];  		if (!$fileIds) { 			return $this; 		}  		$newNames = $media[self::NEW_NAMES_KEY] ?? []; 		$titles = $media[self::TITLE_KEY] ?? []; 		$orders = $media[self::ORDER_KEY] ?? [];  		/** 		 * @var Collection<int, MediaModel> $models 		 */ 		$models = $this->model 			->media() 			->whereIn('id', $fileIds) 			->get();  		$models->each(function (MediaModel $file) use ($newNames, $titles, $orders): void { 			$id = $file->getKey();  			$file->update([ 				'file_name' => isset($newNames[$id]) ? $this->generateFileName($newNames[$id]) . '.' . $file->extension : $file->file_name, 				'name' => $titles[$id] ?? null, 				'order_column' => $orders[$id] ?? null, 			]); 		});  		return $this; 	}