def METHOD_NAME(self, study_data: FileStudy) -> CommandOutput:
    binding_constraints = study_data.tree.get(["input", "bindingconstraints", "bindingconstraints"])
    binding: Optional[JSON] = None
    new_key: Optional[str] = None
    for key, binding_config in binding_constraints.items():
        if binding_config["id"] == self.id:
            binding = binding_config
            new_key = key
            break
    if binding is None or new_key is None:
        return CommandOutput(
            status=False,
            message="Failed to retrieve existing binding constraint",
        )
    return apply_binding_constraint(
        study_data,
        binding_constraints,
        new_key,
        self.id,
        binding["name"],
        self.comments,
        self.enabled,
        self.time_step,
        self.operator,
        self.coeffs,
        self.values,
        self.filter_year_by_year,
        self.filter_synthesis,
    )