def METHOD_NAME(self, study_data: FileStudyTreeConfig) -> Tuple[CommandOutput, Dict[str, Any]]:
    district_id = transform_name_to_id(self.name)
    if district_id in study_data.sets:
        return (
            CommandOutput(
                status=False,
                message=f"District '{self.name}' already exists and could not be created",
            ),
            dict(),
        )
    base_filter = self.base_filter or DistrictBaseFilter.remove_all
    inverted_set = base_filter == DistrictBaseFilter.add_all
    study_data.sets[district_id] = DistrictSet(
        name=self.name,
        areas=self.filter_items or [],
        output=self.output,
        inverted_set=inverted_set,
    )
    item_key = "-" if inverted_set else "+"
    return CommandOutput(status=True, message=district_id), {
        "district_id": district_id,
        "item_key": item_key,
    }