void (@NotNull Graphics2D g) { Rectangle clip = g.getClipBounds(); if (clip == null) { return; } Color bg = isReleased ? getDisposedBackground() : getBackgroundColor(); g.setColor(bg); g.fillRect(clip.x, clip.y, clip.width, clip.height); }