public static @NotNull BufferedImage createImage(GraphicsConfiguration gc,
                                                   double width,
                                                   double height,
                                                   int type,
                                                   @NotNull RoundingMode rm) {
    if (JreHiDpiUtil.isJreHiDPI(gc)) {
      return new HiDPIImage(gc, width, height, type, rm);
    }
    //noinspection UndesirableClassUsage
    return new BufferedImage(rm.round(width), rm.round(height), type);
  }
public static @NotNull BufferedImage createImage(GraphicsConfiguration gc,
                                                   double width,
                                                   double height,
                                                   int type,
                                                   @NotNull RoundingMode rm)