def METHOD_NAME(self):
    """Get editable Draft objects for the selection."""
    for obj in Gui.Selection.getSelection():
        if obj.isDerivedFrom("Part::Part2DObject"):
            self.editable_objects.append(obj)
        elif (hasattr(obj, "Base")
              and obj.Base.isDerivedFrom("Part::Part2DObject")):
            self.editable_objects.append(obj.Base)