def _jars_to_directories(self, target):
    files = set()
    jar_import_products = self.context.products.get_data(JarImportProducts)
    imports = jar_import_products.imports(target)
    for coordinate, jar in imports:
      files.add(self._extract_jar(coordinate, jar))
    return files
Extracts and maps jars to directories containing their contents.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/codegen/tasks/protobuf_gen.py/ProtobufGen._jars_to_directories