@Override
			public void paintIcon( Component c, Graphics g, int x, int y ) {
				// get icon on demand
				if( realIcon == null ) {
					// get system icon
					try {
						if( f != null )
							realIcon = getFileChooser().getFileSystemView().getSystemIcon( f );
					} catch( NullPointerException ex ) {
						// Java 21 may throw a NPE for exe files that use default Windows exe icon
					}

					// get default icon
					if( realIcon == null )
						realIcon = FlatFileView.super.getIcon( f );

					if( realIcon instanceof ImageIcon )
						realIcon = new ScaledImageIcon( (ImageIcon) realIcon );

					cacheIcon( f, this );
				}

				realIcon.paintIcon( c, g, x, y );
			}
A proxy icon that has a fixed (scaled) width/height (16x16) and
gets/loads the real (system) icon only for painting.
Avoids unnecessary getting/loading system icons.
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatFileChooserUI.java