def METHOD_NAME(self):
    """Puts the deleted/changed snippets in the tree."""
    self.deletedItem.takeChildren()
    self.deletedItem.setExpanded(True)
    self.deletedItem.setCheckState(0, Qt.Unchecked)
    self.changedItem.takeChildren()
    self.changedItem.setExpanded(True)
    self.changedItem.setCheckState(0, Qt.Unchecked)
    builtins = list(builtin.builtin_snippets)
    builtins.sort(key = snippets.title)
    names = frozenset(snippets.names())
    for name in builtins:
        if name in names:
            if snippets.isoriginal(name):
                continue
            parent = self.changedItem
        else:
            parent = self.deletedItem
        item = QTreeWidgetItem(parent)
        item.name = name
        item.setFlags(Qt.ItemIsUserCheckable | Qt.ItemIsEnabled)
        item.setCheckState(0, Qt.Unchecked)
        item.setText(0, snippets.title(name))
    self.deletedItem.setDisabled(self.deletedItem.childCount() == 0)
    self.changedItem.setDisabled(self.changedItem.childCount() == 0)
    self.checkOkButton()