public function enterContext(Context $context): void
    {
        // Already in the context.
        if ($this->context && $this->context->match($context)) {
            return;
        }

        $this->switchContext($context, true);
    }