DefaultGradleConvention (final IonReader reader, ReadContext context) { if (reader.next() == null) return null; reader.stepIn(); DefaultGradleConvention convention = context.conventionsMap.computeIfAbsent(readInt(reader, OBJECT_ID_FIELD), new SimpleObjectFactory<DefaultGradleConvention>() { @Override public DefaultGradleConvention create() { return new DefaultGradleConvention(assertNotNull(readString(reader, "name")), readString(reader, "typeFqn")); } }); reader.stepOut(); return convention; }