docs: private static void outputMessages(TreeMap<String, String> strings, File outputFile) throws FileNotFoundException {
          PrintWriter writer = new PrintWriter(new FileOutputStream(outputFile));
          for (Entry<String, String> entry : strings.entrySet()) {
              String key = entry.getKey();
              String val = entry.getValue();
              writer.append(key);
              writer.append('=');
              writer.append(val);
              writer.append("\n");
          }
          writer.flush();
          writer.close();
      }