public function afterGetCurrentCategory(
        \Magento\Catalog\Model\Layer\Category $layer,
        \Magento\Catalog\Api\Data\CategoryInterface $category
    ) {
        $this->searchContext->setCurrentCategory($category);

        return $category;
    }