class ConfusionPairsDataLoader {

  private static final String FILE_ENCODING = "utf-8";

  Map<String, AnalyzedTokenReadings> loadWords(List<String> filepaths) {<FILL_FUNCTION_BODY>}
}

    final Map<String, AnalyzedTokenReadings> map = new HashMap<>();
      for (String filepath : filepaths) {
        final InputStream inputStream = JLanguageTool.getDataBroker().getFromRulesDirAsStream(filepath);
        try (Scanner scanner = new Scanner(inputStream, FILE_ENCODING)) {
          while (scanner.hasNextLine()) {
            final String line = scanner.nextLine().trim();
            if (line.isEmpty() || line.charAt(0) == '#') {  // ignore comments
              continue;
            }
            final String[] parts = line.split(";");
            if (parts.length != 3) {
              throw new RuntimeException("Format error in file " + filepath + ", line: "
                + line + ", " + "expected 3 semicolon-separated parts, got "
                + parts.length);
            }
            final AnalyzedToken analyzedToken = new AnalyzedToken(parts[1], parts[2], null);
            if (!map.containsKey(parts[0])) {
              map.put(parts[0], new AnalyzedTokenReadings(analyzedToken, 0));
            } else {
              AnalyzedTokenReadings atrs = map.get(parts[0]);
              atrs.addReading(analyzedToken, "");
              map.replace(parts[0], atrs);
            }
          }
        }
      }
      return map;
  
<no_super_class>