static S lineAroundIndex(S s, int i) { if (!(i >= 0 && i < l(s))) null; int j = i; while (i > 0 && !isLineBreak(s.charAt(i-1))) --i; while (j < l(s) && !isLineBreak(s.charAt(j))) ++j; ret substring(s, i, j); }