public static @NotNull BufferedImage toBufferedImage(@NotNull Image image) {
    return toBufferedImage(image, false, false);
  }
public static @NotNull BufferedImage toBufferedImage(@NotNull Image image)