TextHitInfo hit = TextHitInfo.afterOffset(offset);
int hitCaret = hitToCaret(hit);
LayoutPathImpl lp = textLine.getLayoutPath();
Shape hitShape = pathToShape(getCaretPath(hit, bounds), false, lp);
TextHitInfo otherHit = hit.getOtherHit();
int otherCaret = hitToCaret(otherHit);
if (hitCaret == otherCaret) {