protected function normalizeMappingSources(array $mappingSources): array
    {
        return \array_map(
            function ($mappingSource): array {
                if (!\is_array($mappingSource)) {
                    $mappingSource = [
                        'type' => DriverFactoryInterface::DRIVER_ANNOTATION,
                        'path' => $mappingSource,
                    ];
                }

                return $mappingSource;
            },
            $mappingSources
        );
    }