diff --git a/platform/core-api/src/com/intellij/util/IconUtil.java b/platform/core-api/src/com/intellij/util/IconUtil.java index 12c44dd12791..78c7c4d38752 100644 --- a/platform/core-api/src/com/intellij/util/IconUtil.java +++ b/platform/core-api/src/com/intellij/util/IconUtil.java @@ -446,6 +446,11 @@ public class IconUtil { } } + return createImageIcon(img); + } + + @NotNull + public static JBImageIcon createImageIcon(@NotNull final BufferedImage img) { return new JBImageIcon(img) { @Override public int getIconWidth() {