public function getActiveExtensionByPath(string $path)
    {
        $activated = $this->getAvailableExtensions()->filterByActivated();
        foreach ($activated as $extension) {
            if (starts_with($path, $extension->getPath())) {
                return $extension;
            }
        }
        return false;
    }