void (IonReader reader, ReadContext context, AbstractExternalDependency dependency) { readDependencyId(reader, dependency); dependency.setScope(readString(reader, "scope")); dependency.setSelectionReason(readString(reader, "selectionReason")); dependency.setClasspathOrder(readInt(reader, "classpathOrder")); dependency.setExported(readBoolean(reader, "exported")); dependency.getDependencies().addAll(readDependencies(reader, context)); }