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