protected function saveCategoryEntity(array $entityRowsIn, array $entityRowsUp)
    {
        if ($entityRowsIn) {
            if ($this->categoryImportVersionFeature) {
                $entityRowsIn = $this->categoryImportVersionFeature->processCategory($entityRowsIn);
            }

            $this->_connection->insertMultiple($this->entityTable, $entityRowsIn);
        }

        if ($entityRowsUp) {
            $this->_connection->insertOnDuplicate(
                $this->entityTable,
                $entityRowsUp,
                [CategoryModel::KEY_PARENT_ID, CategoryModel::KEY_PATH, CategoryModel::KEY_POSITION, CategoryModel::KEY_LEVEL, 'children_count']
            );
        }

        return $this;
    }