protected function getImportErrors(EntityInterface $entity): array
    {
        $result = [];

        /**
         * @var array $errors
         */
        $errors = $entity->errors();

        if (empty($errors)) {
            return $result;
        }

        foreach ($errors as $field => $error) {
            $msg = "[$field] ";
            $msg .= is_array($error) ? implode(', ', $error) : $error;
            $result[] = $msg;
        }

        return $result;
    }