findGateWithSerializedId(id) {
        for (let g of this.gates) {
            if (g.serializedId === id) {
                return g;
            }
        }
        return undefined;
    }
@param {!String} id
@returns {undefined|!Gate}