docs: protected void writeClassToDisk(File targetDir, ClassWriter classWriter, String className) throws IOException {
          if (targetDir != null) {
  
              String fileName = className.replace('.', '/') + ".class";
              File targetFile = new File(targetDir, fileName);
              targetFile.getParentFile().mkdirs();
  
              try (OutputStream outputStream = Files.newOutputStream(targetFile.toPath())) {
                  writeClassToDisk(outputStream, classWriter);
              }
          }
      }