     * @param string[][] $lines
     * @param int[] $headMap indexes are strings
     * @return int
     * @throws CatalogValidateException
     * @throws CatalogErrorException
     */
    public function importCategoriesData( $lines, $headMap ) {
        /** @var Category[] $categories */
        $categories = [];

        /** @var CategoryLanguage[] $categoriesLanguages */
        $categoriesLanguages=[];