public function getInstallPath(PackageInterface $package)
    {
        if (!$this->supports($package->getType())) {
            throw new \InvalidArgumentException(
                'Unable to install package, git-hook packages only '
                . 'support "git-hook", "library" type packages.'
            );
        }

        // Allow to LibraryInstaller to resolve the installPath for other packages.
        if ($package->getType() !== 'git-hook') {
            return parent::getInstallPath($package);
        }

        return $this->getHooksInstallationPath();
    }