DefaultGradleConfiguration (final IonReader reader, ReadContext context) { if (reader.next() == null) return null; reader.stepIn(); DefaultGradleConfiguration configuration = context.configurationsMap.computeIfAbsent(readInt(reader, OBJECT_ID_FIELD), new SimpleObjectFactory<DefaultGradleConfiguration>() { @Override public DefaultGradleConfiguration create() { return new DefaultGradleConfiguration( assertNotNull(readString(reader, "name")), readString(reader, "description"), readBoolean(reader, "visible"), readBoolean(reader, "scriptClasspathConfiguration"), readStringList(reader)); } }); reader.stepOut(); return configuration; }