public function onParseArticles(FrontendTemplate $template, array $data, Module $module)
    {
        /** @var NewsCategoryModel $newsCategoryModelAdapter */
        $newsCategoryModelAdapter = $this->framework->getAdapter(NewsCategoryModel::class);

        if (null === ($models = $newsCategoryModelAdapter->findPublishedByNews($data['id']))) {
            return;
        }

        $this->addCategoriesToTemplate($template, $module, $models);
    }