public DocumentStoredFieldVisitor(String... fields) {fieldsToAdd = new HashSet<>(fields.length);for(String field : fields) {fieldsToAdd.add(field);}}

public DocumentStoredFieldVisitor(params string[] fields){fieldsToAdd = new JCG.HashSet<string>();foreach (string field in fields){fieldsToAdd.Add(field);}}
