protected function storeAsset()
    {
        if (!$this->visitor instanceof Discover) {
            return;
        }

        $assets = $this->getAssetManager();
        $project_root = $assets->getProjectRoot();
        $asset_path = trim($this->node->parameters);
        $file_path = $this->visitor->getDocument()->getFile()->getRealPath();

        // get source path
        $source = ($asset_path[0] !== '/')
            ? dirname($file_path) . '/' . $asset_path
            : $project_root . $asset_path;

        // get destination path
        $destination = ($asset_path[0] !== '/')
            ? substr(dirname($file_path) . '/' . $asset_path, strlen($project_root))
            : substr($asset_path, 1);

        // set asset
        $assets->set($source, $destination);
    }