def METHOD_NAME(self, filename):
    name = os.path.basename(filename)
    if self.editor.protoPalette.findItem(name):
        item = self.tree.traverse(self.tree.root, name)
        if item:
            self.tree.DeleteItem(item)
    modelname = Filename.fromOsSpecific(filename).getFullpath()
    if modelname.endswith('.mb') or\
       modelname.endswith('.ma'):
        self.editor.convertMaya(modelname, self.addNewItem)
        return
    itemData = ObjectBase(name=name, model=modelname, actor=True)
    self.editor.protoPalette.add(itemData)
    newItem = self.tree.AppendItem(self.editor.ui.protoPaletteUI.tree.root, name)
    self.tree.SetItemPyData(newItem, itemData)
    self.tree.ScrollTo(newItem)