protected function inWatchedSuffixes($file)
    {
        foreach ($this->suffixes as $suffix) {
            $start = strlen($suffix);

            if (substr($file, -$start, $start) === $suffix) {
                return true;
            }
        }

        return false;
    }