class PreferredWordData {

  private final List<PreferredWordRuleWithSuggestion> spellingRules = new ArrayList<>();

  PreferredWordData(String ruleDesc, String filePath, String ruleId) {
    Language dutch = Languages.getLanguageForShortCode("nl");
    String message = "Voor dit woord is een gebruikelijker alternatief.";
    String shortMessage = "Gebruikelijker woord";
    List<String> lines = JLanguageTool.getDataBroker().getFromResourceDirAsLines(filePath);
    for (String line : lines) {
      if (line.startsWith("#")) {
        continue;
      }
      String[] parts = line.split(";");
      if (parts.length != 2) {
        throw new RuntimeException("Unexpected format in file " + filePath + ": " + line);
      }
      String oldWord = parts[0];
      String newWord = parts[1];
      List<PatternToken> patternTokens = getTokens(oldWord);
      PatternRule rule = new PatternRule(ruleId + "_INTERNAL", dutch, patternTokens, ruleDesc, message, shortMessage);
      spellingRules.add(new PreferredWordRuleWithSuggestion(rule, oldWord, newWord));
    }
  }

  @NotNull
  private List<PatternToken> getTokens(String oldWord) {<FILL_FUNCTION_BODY>}

  public List<PreferredWordRuleWithSuggestion> get() {
    return spellingRules;
  }

}

    PatternTokenBuilder builder = new PatternTokenBuilder();
    String[] newWordTokens = oldWord.split(" ");
    List<PatternToken> patternTokens = new ArrayList<>();
    for (String part : newWordTokens) {
      patternTokens.add(builder.csToken(part).build());
    }
    return patternTokens;
  
<no_super_class>