void (@NotNull Graphics2D g, int index, @NotNull Color bgColor, int x, int y, int width, int height) { if (myBackgroundInsets != null) { g.setColor(bgColor); g.fillRect(x + myBackgroundInsets.left, y + myBackgroundInsets.top, width - myBackgroundInsets.width(), height - myBackgroundInsets.height()); } else { super.doPaintFragmentBackground(g, index, bgColor, x, y, width, height); } }