def METHOD_NAME(self, opt_name, opts):
    # validate coexist options
    for invalid_opt in self._invalid_coexist_options:
        invalid_opt_name = invalid_opt.replace("-", "_")
        if invalid_opt_name in opts:
            raise click.BadParameter(
                f"Parameters {opt_name}, and {','.join(self._invalid_coexist_options)} cannot be used together"
            )