public function afterCreate(
        TemplateEngineFactory $subject,
        TemplateEngineInterface $invocationResult
    ): TemplateEngineInterface {
        $storeCode = $this->storeManager->getStore()->getCode();
        if (
            $this->config->isEnabledLayoutDebug() &&
            $this->request->getParam('hints') &&
            $this->devHelper->isDevAllowed()
        ) {
            $showBlockHints = (
                $this->scopeConfig->getValue(
                    self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS,
                    ScopeInterface::SCOPE_STORE,
                    $storeCode
                ) || $this->request->getParam('hints-block')
            );

            return $this->debugHintsFactory->create([
                'subject' => $invocationResult,
                'showBlockHints' => $showBlockHints,
            ]);
        }

        return $invocationResult;
    }