protected function matchStaticRoute(string $path, string $method): ? Route
    {
        $route = null;

        // Let's check if the route is set in the static routes
        if (self::$collection->issetStaticRoute($method, $path)) {
            $route = $this->getMatchedStaticRoute($path, $method);
        }

        if (null !== $route && $this->isValidMethod($route, $method)) {
            return $route;
        }

        return null;
    }