docs: public static void makeFileAndClose(InputStream in, String outputFilename) {
          final byte[] bytes = toBytesAndClose(in);
          final File outputFile = new File(outputFilename);
          final FileOutputStream fileOutputStream;
          try {
              fileOutputStream = new FileOutputStream(outputFile, false);
          } catch (FileNotFoundException e) {
              String msg = "new FileOutputStream(outputFile, false) threw the " + e.getClass().getSimpleName();
              msg = msg + ": outputFilename=" + outputFilename;
              throw new IllegalStateException(msg, e);
          }
          try {
              fileOutputStream.write(bytes);
          } catch (IOException e) {
              String msg = "fileOutputStream.write(toBytes) threw the " + e.getClass().getSimpleName();
              msg = msg + ": outputFilename=" + outputFilename;
              throw new IllegalStateException(msg, e);
          } finally {
              try {
                  fileOutputStream.close();
              } catch (IOException ignored) {}
          }
      }