protected function getDependencies(array $identifiers): array
    {
        $dependencies = [];

        foreach ($identifiers as $index => $identifier) {
            $dependencies[$index] = !$identifier->optional || $this->container->has($identifier->key)
                ? $this->container->get($identifier->key)
                : null;
        };

        return $dependencies;
    }