public function getMappingFiles(): array
    {
        $mappingPaths = [];

        foreach ($this->paths as $mappingPath) {
            if (\is_dir($mappingPath)) {
                $mappingPaths[] = $this->getFilesFromDirectory($mappingPath);
            } elseif (\is_file($mappingPath)) {
                $mappingPaths[] = [$mappingPath];
            } else {
                throw new DriverException(\sprintf('Path "%s" does not exist', $mappingPath));
            }
        }

        return \count($mappingPaths) > 0 ? \array_merge(...$mappingPaths) : [];
    }