docs: public static void dynamicCodeGenerate(OutputStream os, Class cls, Charset charset, ICodeGenerator codeGenerator)
              throws IOException {
          if (cls == null) {
              throw new NullPointerException("Parameter 'cls' is null");
          }
          if (os == null) {
              throw new NullPointerException("Parameter 'os' is null");
          }
          if (charset == null) {
              charset = Charset.defaultCharset();
          }
          String code = codeGenerator.getCode();
  
          os.write(code.getBytes(charset));
      }