def METHOD_NAME(self, study_data: FileStudy) -> CommandOutput:
    output, data = self._apply_config(study_data.config)
    if not output.status:
        return output
    district_id = data["district_id"]
    item_key = data["item_key"]
    study_data.tree.save(
        {
            "caption": self.name,
            "apply-filter": (self.base_filter or DistrictBaseFilter.remove_all).value,
            item_key: self.filter_items or [],
            "output": study_data.config.sets[district_id].output,
            "comments": self.comments,
        },
        ["input", "areas", "sets", district_id],
    )
    return output