private static @Nullable Image filterImage(@Nullable Image image, ImageLoadSettings imageLoadSettings) {
      if (image == null) {
        return null;
      }
      try {
        boolean flipV = imageLoadSettings.flipV();
        boolean flipH = imageLoadSettings.flipH();
        BufferedImageFilter flipFilter = flipV || flipH ? flipFilter(flipV, flipH) : null;
        // we scale and handle HiDPI later
        return IconUtilKt.filterImage(image, ContainerUtil.createMaybeSingletonList(flipFilter));
      }
      catch (Exception e) {
        LOG.warn(e);
        return null;
      }
    }
private static @Nullable Image filterImage(@Nullable Image image, ImageLoadSettings imageLoadSettings)