'Calls TakeOverOnlyChild for all groups in the main group.'

def RootGroupsTakeOverOnlyChildren(self, recurse=False):

    for group in self._properties['mainGroup']._properties['children']:
        if isinstance(group, PBXGroup):
            group.TakeOverOnlyChild(recurse)
