def METHOD_NAME(self, inputNames):
    obj = self.doc.addObject("Part::Section", "Section")
    obj.Base = self.doc.getObject(inputNames[0])
    obj.Tool = self.doc.getObject(inputNames[1])
    self.copy_visual_attributes(obj, obj.Base)
    target = self.move_input_objects([obj.Base, obj.Tool])
    if target:
        target.addObject(obj)
    return obj