Collection<JsonValueAdapter> () { YAMLValue value = myProperty instanceof YAMLKeyValue ? ((YAMLKeyValue)myProperty).getValue() : null; return value != null ? Collections.singletonList(createValueAdapterByType(value)) : ContainerUtil.createMaybeSingletonList(createEmptyValueAdapter(myProperty, false)); }