private BufferedImage getAppImage() {
      EDT.assertIsEdt();

      try {
        if (myAppImage != null) return myAppImage;

        if (!Taskbar.isTaskbarSupported()) return null;
        Image appImage = Taskbar.getTaskbar().getIconImage();
        if (appImage == null) return null;

        // [tav] expecting two resolution variants for the dock icon: 128x128, 256x256
        appImage = MultiResolutionImageProvider.getMaxSizeResolutionVariant(appImage);
        myAppImage = ImageUtil.toBufferedImage(appImage);
      }
      catch (Exception e) {
        LOG.error(e);
      }

      return myAppImage;
    }
private BufferedImage getAppImage()