public static @NotNull Image createFrom(@NotNull Image image, double scale, ImageObserver observer) {
    int w = image.getWidth(observer);
    int h = image.getHeight(observer);
    return new HiDPIImage(image, w / scale, h / scale, BufferedImage.TYPE_INT_ARGB);
  }
public static @NotNull Image createFrom(@NotNull Image image, double scale, ImageObserver observer)