class SynthesizerTools {
  
  private SynthesizerTools() {
    // static methods only, no public constructor
  }

  public static List<String> loadWords(InputStream stream) {<FILL_FUNCTION_BODY>}

}

    List<String> result = new ArrayList<>();
    try (Scanner scanner = new Scanner(stream, "UTF-8")) {
      while (scanner.hasNextLine()) {
        String line = scanner.nextLine().trim();
        if (line.isEmpty() || line.charAt(0) == '#') {  // ignore empty lines and comments
          continue;
        }
        result.add(line);
      }
    }
    return result;
  
<no_super_class>