static LPair scanConceptForRefsWithFieldNames(Concept c) { LPair refs = new L; if (c != null) for (S field, O o : objectToMap(c)) { if (o cast Concept.Ref) refs.add(pair(o, field)); else if (o cast Concept.RefL) for (int i = 0; i < l(o.l); i++) refs.add(pair((Concept.Ref) o.l.get(i), field + "[" + (i+1) + "]")); } ret refs; }