private function processTagRules(): array
    {
        $processedTagRules = $this->getTagRules();

        array_walk($processedTagRules, function (&$tagRule) {
            $tagRule = array_map(function ($valueOrCallback) {
                return is_callable($valueOrCallback, true)
                    ? Closure::fromCallable($valueOrCallback)->call($this)
                    : $valueOrCallback;
            }, $tagRule);
        });

        return $processedTagRules;
    }