def METHOD_NAME(self, bin_param: FeatureBinningParam):
    if self.bin_param is not None:
        raise RuntimeError("Bin param has been set and it's immutable")
    self.bin_param = bin_param
    return self