protected static function notifyFunction(&$progressHandlers)
    {
        return function ($update = null) use (&$progressHandlers) {
            foreach ($progressHandlers as $handler) {
                $handler($update);
            }
        };
    }