def METHOD_NAME(
    self, value: str, path: str, cbk: Callable[[], None] = lambda: None
) -> str:
    """
    Checks whether the given value needs to be renamed, and returns the
    old or new value it should be set to.  Logs the change if it happens.
    """
    if value == self.from_uri:
        log_change(
            f"Changing property range from {self.from_str} to {self.to_str} in {stylize_json(path)}"
        )
        cbk()
        return self.to_uri
    return value