void (@NotNull Graphics g) { CaretRectangle[] locations = getCaretLocations(true); if (locations == null) return; for (CaretRectangle location : myLocations) { paintAt(g, location.myPoint.x, location.myPoint.y, location.myWidth, location.myCaret); } }