public static void paintPolygons(@NotNull Graphics2D gg,
                                   int width,
                                   boolean curved,
                                   @NotNull Editor editor1,
                                   @NotNull Editor editor2,
                                   @NotNull DividerPaintable paintable) {
    ReadAction.run(() -> {
      List<DividerPolygon> polygons = createVisiblePolygons(editor1, editor2, paintable, gg.getClipBounds());

      GraphicsConfig config = GraphicsUtil.setupAAPainting(gg);
      for (DividerPolygon polygon : polygons) {
        polygon.paint(gg, width, curved);
      }
      config.restore();
    });
  }
public static void paintPolygons(@NotNull Graphics2D gg,
                                   int width,
                                   boolean curved,
                                   @NotNull Editor editor1,
                                   @NotNull Editor editor2,
                                   @NotNull DividerPaintable paintable)