def METHOD_NAME(self):
    #import pdb;set_trace()
    parent = self.GetSelection()
    if parent is None:
        parent = self.GetRootItem()
    i = 1
    namestr = f"Group{i}"
    found = self.traverse(self.GetRootItem(), namestr)
    while found:
        i = i + 1
        namestr = f"Group{i}"
        found = self.traverse(self.GetRootItem(), namestr)
    newItem = self.AppendItem(parent, namestr)
    itemData = ObjectGen(name=namestr)
    parentName = self.GetItemText(parent)
    if parentName == self.rootName:
        self.paletteUI.palette.add(itemData)
    else:
        self.paletteUI.palette.add(itemData, parentName)
    self.SetItemPyData(newItem, itemData)
    self.Expand(self.GetRootItem())
    self.ScrollTo(newItem)