private static Pair<BufferedImage, Graphics2D> createAppImage(BufferedImage appImage) {
      @SuppressWarnings("UndesirableClassUsage") BufferedImage current = new BufferedImage(appImage.getWidth(), appImage.getHeight(), BufferedImage.TYPE_INT_ARGB);
      Graphics2D g = current.createGraphics();
      g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
      StartupUiUtil.drawImage(g, appImage, 0, 0, null);
      return new Pair<>(current, g);
    }
private static Pair<BufferedImage, Graphics2D> createAppImage(BufferedImage appImage)