private static function parseUploadedFiles(array $filesArray): UploadedFileCollectionInterface
    {
        $uploadedFiles = new UploadedFileCollection();

        foreach ($filesArray as $uploadedFileName => $uploadedFileInfo) {
            $uploadedFile = self::parseUploadedFile($uploadedFileInfo);
            if ($uploadedFile === null) {
                continue;
            }

            $uploadedFiles->set(strval($uploadedFileName), $uploadedFile);
        }

        return $uploadedFiles;
    }