class PostmanScenarioIndexerService {

    List<Path> listJsonFilePaths(FileSystem zip) throws IOException {
        List<Path> jsonFilePaths = new ArrayList<>();

        for (Path root : zip.getRootDirectories()) {
            try (final Stream<Path> walker = Files.walk(root)) {
                jsonFilePaths.addAll(walker
                        .filter(path -> path.toString().endsWith(".json"))
                        .sorted()
                        .collect(Collectors.toList()));
            }
        }

        return jsonFilePaths;
    }

}