List<String> (@NotNull JsonReaderEx reader) { reader.beginArray(); if (!reader.hasNext()) { reader.endArray(); return Collections.emptyList(); } List<String> list = new ArrayList<>(2); while (reader.hasNext()) { String value = nextStringOrSkip(reader); if (value != null) { list.add(value); } } reader.endArray(); return list; }