private function importFile(File $file)
    {
        $response = [
            'fileName' => $file->getFilename(),
            'total' => 0,
            'exceptions' => [],
        ];

        /** @var Item $item */
        foreach ($this->import->import($file->getRealPath()) as $item) {
            ++$response['total'];

            if (!$item->getException()) {
                continue;
            }

            $response['exceptions'][] = [
                'exception' => $item->getException(),
                'lineNumber' => $item->getLineNumber(),
                'lineContent' => $item->getLineContent(),
            ];
        }

        return $response;
    }