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 (Concept.Ref ref : o.l) refs.add(pair(ref, field)); } ret refs; }