function addGroup(name, devices, custom)
        {
            if (!devices.length)
                return;
            devices = devices.slice();
            devices.sort(compareDevices);
            var groupElement = deviceSelectElement.createChild("optgroup");
            groupElement.label = name;
            for (var i = 0; i < devices.length; ++i) {
                var option = new Option(devices[i].title, devices[i].title);
                option.device = devices[i];
                option.custom = custom;
                groupElement.appendChild(option);
            }
        }
@param {string} name
@param {!Array.<!WebInspector.OverridesSupport.Device>} devices
@param {boolean=} custom