for (int i=firstEndpoint; i<=secondEndpoint; i++) {
int endRun = breaker.getLevelRunLimit(i, secondEndpoint);
TextHitInfo hit1 = TextHitInfo.leading(i);
TextHitInfo hit2 = TextHitInfo.trailing(endRun-1);
Line2D caret1 = getCaretShape(hit1, layout, false, true, bounds);
Line2D caret2 = getCaretShape(hit2, layout, false, true, bounds);
res.append(connectCarets(caret1, caret2), false);
i = endRun;
}