public function extensions($extensions = null)
    {
        deprecationWarning(
            'RouteBuilder::extensions() is deprecated. ' .
            'Use RouteBuilder::setExtensions()/getExtensions() instead.'
        );
        if ($extensions === null) {
            return $this->getExtensions();
        }
        $this->setExtensions($extensions);
    }