protected function mapPathsWithType(array $paths, string $type): array
    {
        return \array_map(function ($item) use ($type) {
            return [
                'path' => $item,
                'type' => $type,
            ];
        }, \array_unique($paths));
    }