protected function addToDataGenerator(
        array $methods,
        array $routeDatas,
        string $routeName,
        DataGenerator $dataGenerator
    ) : DataGenerator {
        foreach ($methods as $method) {
            foreach ($routeDatas as $routeData) {
                $dataGenerator->addRoute($method, $routeData, $routeName);
            }
        }

        return $dataGenerator;
    }