public function aroundGetNoteMessages(Result $resultBlock, \Closure $proceed)
    {
        $messages = $proceed();
        $query    = $this->queryFactory->get();

        $query->setNumResults($this->resultCount);
        $query->setIsSpellchecked(false);
        $isSpellcheck = $resultBlock->getListBlock()->getLoadedProductCollection()->isSpellchecked();

        if ($isSpellcheck && $this->resultCount > 0) {
            $messages[] = __(
                "No exact results found for: <b>'%1'</b>. The displayed items are the closest matches.",
                $this->catalogSearchData->getEscapedQueryText()
            );
            $query->setIsSpellchecked(true);
        }

        if ($this->canSaveQuery()) {
            $this->queryResource->saveSearchResults($query);
        }

        return $messages;
    }