def METHOD_NAME(self):
    """Proceed when a valid selection has been made."""
    if Gui.Selection.getSelection():
        App.ActiveDocument.openTransaction("Create Facebinder")
        Gui.addModule("Draft")
        Gui.doCommand("s = FreeCADGui.Selection.getSelectionEx()")
        Gui.doCommand("facebinder = Draft.make_facebinder(s)")
        Gui.doCommand('Draft.autogroup(facebinder)')
        Gui.doCommand('FreeCAD.ActiveDocument.recompute()')
        App.ActiveDocument.commitTransaction()
        App.ActiveDocument.recompute()
    self.finish()