public NSImage convert(final NSImage icon, final Integer width, final Integer height) { if (null == width || null == height) { log.debug(String.format("Return default size for %s", icon.name())); return icon; } icon.setSize(new NSSize(width, height)); return icon; }