protected function isExcludedClass($object)
    {
        foreach ($this->excludedClasses as $excludedClass) {
            if ($object instanceof $excludedClass) {
                return true;
            }
        }

        return false;
    }