public String[] getStopWords(String fieldName) {Set<String> stopWords = stopWordsPerField.get(fieldName);return stopWords != null ? stopWords.toArray(new String[stopWords.size()]) : new String[0];}
public string[] GetStopWords(string fieldName){var stopWords = stopWordsPerField[fieldName];return stopWords != null ? stopWords.ToArray() : new string[0];}