ExternalTestSourceMapping (final IonReader reader, ReadContext context) { if (reader.next() == null) return null; reader.stepIn(); ExternalTestSourceMapping dependency = context.testSourceMapping.computeIfAbsent(readInt(reader, OBJECT_ID_FIELD), new SimpleObjectFactory<ExternalTestSourceMapping>() { @Override public ExternalTestSourceMapping create() { DefaultExternalTestSourceMapping mapping = new DefaultExternalTestSourceMapping(); mapping.setTestName(readString(reader, "testName")); mapping.setTestTaskPath(assertNotNull(readString(reader, "testTaskPath"))); mapping.setSourceFolders(readStringSet(reader)); return mapping; } }); reader.stepOut(); return dependency; }