void () { if (myUseNewRendering) { myView.repaintCarets(); } else { for (CaretRectangle location : myLocations) { myEditorComponent.repaintEditorComponent(location.myPoint.x, location.myPoint.y, location.myWidth, getLineHeight()); } } }