List<JsonValueAdapter> () { List<YAMLSequenceItem> items = myArray.getItems(); List<JsonValueAdapter> adapters = new ArrayList<>(items.size()); for (YAMLSequenceItem item: items) { YAMLValue value = item.getValue(); if (value == null) { JsonValueAdapter emptyAdapter = YamlPropertyAdapter.createEmptyValueAdapter(item.getFirstChild(), true); if (emptyAdapter != null) adapters.add(emptyAdapter); continue; } adapters.add(YamlPropertyAdapter.createValueAdapterByType(value)); } return adapters; }