static IntRange shiftIntRange(int shift, IntRange r) { ret r == null ? null : intRange(r.start+shift, r.end+shift); }