protected function getDependencies(ReflectionClass $refl) {
        if (!$refl->isInstantiable()) {
            return [];
        }

        $constr = $refl->getConstructor();

        if (!$constr) {
            return [];
        }

        return $constr->getParameters();
    }