Set<String> (@NotNull IonReader reader) { Set<String> set = new HashSet<>(); reader.next(); reader.stepIn(); String nextString; while ((nextString = readString(reader, null)) != null) { set.add(nextString); } reader.stepOut(); return set; }