protected static function getOperationPackage(OperationInterface $operation)
    {
        $data = null;
        if ($operation instanceof UpdateOperation) {
            $data = $operation->getTargetPackage();
        } elseif ($operation instanceof InstallOperation) {
            $data = $operation->getPackage();
        }

        return $data;
    }