public static void drawVDottedLine(@NotNull Graphics2D g,
                                     int lineX,
                                     int startY,
                                     int endY,
                                     final @Nullable Color bgColor,
                                     final Color fgColor) {
    if (bgColor != null) {
      g.setColor(bgColor);
      LinePainter2D.paint(g, lineX, startY, lineX, endY);
    }

    g.setColor(fgColor);
    for (int i = startY / 2 * 2; i < endY; i += 2) {
      g.drawRect(lineX, i, 0, 0);
    }
  }
public static void drawVDottedLine(@NotNull Graphics2D g,
                                     int lineX,
                                     int startY,
                                     int endY,
                                     final @Nullable Color bgColor,
                                     final Color fgColor)