static Pair withTrailToPair(WithTrail a) { ret a == null ? null : pair(a!, a.trail); }