protected function createChildCheckers()
    {
        foreach ($this->getResource()->getFilteredResources() as $resource) {
            $resource instanceof DirectoryResource
                ? $this->directories[basename((string) $resource)] = new DirectoryStateChecker($this->getBag(), $resource, $this->getEventsMask())
                : $this->files[basename((string) $resource)] = $resource;
        }
    }