List<ClasspathEntryModel> (IonReader reader) { List<ClasspathEntryModel> list = new ArrayList<>(); reader.next(); reader.stepIn(); ClasspathEntryModel entry; while ((entry = readClasspathEntry(reader)) != null) { list.add(entry); } reader.stepOut(); return list; }