def METHOD_NAME(self):
    """
    Revert any selected patches.
    """
    dlg = QMessageBox()
    dlg.setWindowTitle("Revert patches")
    dlg.setText("Are you sure you want to revert selected patches?")
    dlg.setIcon(QMessageBox.Question)
    dlg.setStandardButtons(QMessageBox.Yes | QMessageBox.Cancel)
    dlg.setDefaultButton(QMessageBox.Cancel)
    if dlg.exec_() != QMessageBox.Yes:
        return
    selected_patches = self.get_selected_patches()
    if selected_patches:
        for patch in selected_patches:
            self.instance.patches.remove_patch(patch.addr)
        self.instance.patches.am_event(removed=selected_patches)