private void paintTopBottomBorder(@NotNull Graphics g, int x, int y, int width, int height) {
    int targetRow = 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);
  }
private void paintTopBottomBorder(@NotNull Graphics g, int x, int y, int width, int height)