private function getConstructorArgs($reflectionClass, int $constructorArgsCount = 0)
    {
        if ($reflectionClass->hasMethod('__construct')) {
            $constructor = $reflectionClass->getConstructor();
            $constructor->setAccessible(true);
            $constructorArgsCount = $constructor->getNumberOfParameters();

            return [$constructor, $constructorArgsCount];
        }
    }