svoid fixOuterRefs(O o) ctex { if (o == null) ret; Field[] l = thisDollarOneFields(o.getClass()); if (l.length <= 1) ret; O father = null; for (Field f : l) { father = f.get(o); if (father != null) break; } if (father == null) ret; for (Field f : l) f.set(o, father); }