def METHOD_NAME(self, group):
    """Format a group instead of simple object."""
    Gui.addModule("Draft")
    _cmd_list = []
    for obj in group.Group:
        if obj.TypeId == "App::DocumentObjectGroup":
            _cmd_list.extend(self.METHOD_NAME(obj))
        else:
            _cmd = 'Draft.formatObject'
            _cmd += '('
            _cmd += 'FreeCAD.ActiveDocument.' + obj.Name
            _cmd += ')'
            _cmd_list.append(_cmd)
    return _cmd_list