List<String> (List<String> result, String line) { String unquoted = StringUtil.unquoteString(line); if (!unquoted.equals(line)) { result.add(unquoted); } else{ String[] variants = line.split(","); for (String variant : variants) { result.add(variant.trim()); } } return result; }