def METHOD_NAME(self, src_path, on_change_id):
    # Note: this will be called from the watcher thread.
    if not self.writer.write(
        {"command": "on_change", "on_change_id": on_change_id, "src_path": src_path}
    ):
        from robocorp_ls_core.watchdog_wrapper import IFSWatch
        # I.e.: socket communication appears to be dropped for this change_id,
        # so, stop tracking it.
        watch: IFSWatch = self.on_change_id_to_watch.pop(on_change_id, None)
        if watch is not None:
            watch.stop_tracking()