Icon (@NotNull Icon icon) { while (icon instanceof CompositeIcon compositeIcon) { if (compositeIcon.getIconCount() == 0) { break; } icon = compositeIcon.getIcon(0); } assert icon != null; return unwrapRetrievableIcon(icon); }