public function watchHandler()
    {
        if (! $events = inotify_read($this->inotify)) {
            return;
        }

        foreach ($events as $event) {
            if (! empty($event['name']) && ! $this->inWatchedSuffixes($event['name'])) {
                continue;
            }

            if (! $this->handle($event)) {
                break;
            }
        }
    }