protected function watchDirectory($directory)
    {
        if ($this->isExcluded($directory)) {
            return false;
        }

        if (! $this->isWatched($directory)) {
            $wd = inotify_add_watch($this->inotify, $directory, $this->getMaskValue());
            $this->watchedDirectories[$wd] = $directory;
        }

        return true;
    }