void (@Nullable Icon baseIcon) { Icon icon = baseIcon; if (icon == null) { return; } if (icon instanceof DeferredIcon) { icon = ((DeferredIcon)icon).getBaseIcon(); } icon = removeVisibilityIfNeeded(myLookup.getEditor(), icon, myEmptyIcon); icon = EmptyIcon.create(icon); for (ItemPresentationCustomizer customizer : myCustomizers) { icon = customizer.customizeEmptyIcon(icon); } if (icon.getIconWidth() > myEmptyIcon.getIconWidth() || icon.getIconHeight() > myEmptyIcon.getIconHeight()) { myEmptyIcon = EmptyIcon.create(Math.max(icon.getIconWidth(), myEmptyIcon.getIconWidth()), Math.max(icon.getIconHeight(), myEmptyIcon.getIconHeight())); setIconInsets(myNameComponent); } }