def METHOD_NAME(self):
    if not len(self.componentName):
        slicer.util.errorDisplay("%s name may not be empty." % self._typetc,
                                 windowTitle="Cannot create %s" % self._typelc, parent=self.dialog)
        return
    if self.showDestination:
        dest = self.destination
        if not len(dest) or not os.path.exists(dest):
            slicer.util.errorDisplay("Destination must be an existing directory.",
                                     windowTitle="Cannot create %s" % self._typelc, parent=self.dialog)
            return
    self.dialog.METHOD_NAME()