protected function createInstallationMethod($method)
    {
        if (is_string($method)) {
            return InstallationMethod::memberByValue($method, false);
        }

        if (is_object($method)) {
            $methods = array();

            foreach ($method as $project => $projectMethod) {
                $methods[$project] =
                    InstallationMethod::memberByValue($projectMethod, false);
            }

            return $methods;
        }

        return null;
    }