protected function createMethodArgument(array $dependencies, array $arguments = []) : array
    {
        $args = [];
        foreach ($dependencies as $dependency) {
            if (!is_null($dependency->getClass())) {
                $args[] = $this->resolverClass($dependency, $arguments);
            } else {
                // Check if construct has default value then we will simply assign it into array
                // and continue for next argument
                if ($dependency->isDefaultValueAvailable()) {
                    $args[] = $this->injector->checkIfConstructorHasDefaultArgs($dependency, $arguments);
                    continue;
                }
                //Check if parameters are optional then we will set the default value
                $args[] = $this->injector->isOptionalArgs($dependency);
            }
        }

        return $args;
    }