* @return highlight shape
*/
GeneralPath connectCarets(Line2D caret1, Line2D caret2) {
GeneralPath path = new GeneralPath(GeneralPath.WIND_NON_ZERO);
path.moveTo((float) caret1.getX1(), (float) caret1.getY1());
path.lineTo((float) caret2.getX1(), (float) caret2.getY1());
path.lineTo((float) caret2.getX2(), (float) caret2.getY2());
path.lineTo((float) caret1.getX2(), (float) caret1.getY2());
path.closePath();