def METHOD_NAME(self):
    # check values
    items = len(self.selectionWidget.references)
    FreeCAD.Console.PrintMessage(
        "Task panel: found references: {}\n{}\n"
        .format(items, self.selectionWidget.references)
    )
    if items != 2:
        msgBox = QtGui.QMessageBox()
        msgBox.setIcon(QtGui.QMessageBox.Question)
        msgBox.setText(
            "Constraint Tie requires exactly two faces\n\nfound references: {}"
            .format(items)
        )
        msgBox.setWindowTitle("FreeCAD FEM Constraint Tie")
        retryButton = msgBox.addButton(QtGui.QMessageBox.Retry)
        ignoreButton = msgBox.addButton(QtGui.QMessageBox.Ignore)
        msgBox.exec_()
        if msgBox.clickedButton() == retryButton:
            return False
        elif msgBox.clickedButton() == ignoreButton:
            pass
    self.obj.Tolerance = self.tolerance
    self.obj.References = self.selectionWidget.references
    self.recompute_and_set_back_all()
    return True