@Override
  protected void paintComponent(@NotNull Graphics g) {
    if (myEnableAntialiasing) {
      GraphicsUtil.setupAntialiasing(g);
    }
    super.paintComponent(g);
    if (!showHorizontalLines && myShowLastHorizontalLine && getRowCount() > 0 && getColumnCount() > 0) {
      Color color = g.getColor();
      Rectangle leftCell = getCellRect(getRowCount() - 1, 0, true);
      Rectangle rightCell = getCellRect(getRowCount() - 1, getColumnCount() - 1, true);
      g.setColor(getGridColor());
      SwingUtilities2.drawHLine(g, leftCell.x, rightCell.x + rightCell.width, leftCell.y + leftCell.height);
      g.setColor(color);
    }
    getEmptyText().paint(this, g);
  }
@Override
  protected void paintComponent(@NotNull Graphics g)