void (@NotNull Graphics g, int x, int y, int width, int height, boolean isTopBorder) { int targetRow = isTopBorder ? 0 : getRowCount() - 1; if (targetRow >= 0 && targetRow < getRowCount()) { g.setColor(getStyle(targetRow, getColumnViewIndex(Commit.INSTANCE), hasFocus(), false, false).getBackground()); } else { g.setColor(getBaseStyle(targetRow, getColumnViewIndex(Commit.INSTANCE), hasFocus(), false).getBackground()); } g.fillRect(x, y, width, height); }