function mycallback(error, payloads)
            {
                if (error) {
                    reject(null);
                    return;
                }
                fulfill(payloads.map(createEventListener.bind(this)));
            }
@this {!WebInspector.RemoteObject}
@param {?Protocol.Error} error
@param {!Array<!DOMDebuggerAgent.EventListener>} payloads