public static function prepareAliases(array $defaultAliasConfig, array $aliasArray): array
    {
        $factory = new static($defaultAliasConfig);
        foreach ($aliasArray as $name => $config) {
            $name = (string) $name;
            $aliasArray[$name] = $factory->createAlias($name, $config);
        }

        return $aliasArray;
    }