def METHOD_NAME(self, event: utils.EventWithData) -> None:
    if event.data_class(tabs.ReloadInfo).had_unsaved_changes:
        oops = utils.get_binding("<<Undo>>")
        text = f"File was reloaded with unsaved changes. Press {oops} to get your changes back."
        self.path_label.config(foreground="red", text=text)