void (@NotNull Rectangle bounds) { Point location = bounds.getLocation(); SwingUtilities.convertPointFromScreen(location, this); int x = location.x; int width = bounds.width; repaint(x, location.y, width, bounds.height); }