public static File[] getChooserShortcutPanelFiles( FileSystemView fsv ) {
		try {
			if( SystemInfo.isJava_12_orLater ) {
				Method m = fsv.getClass().getMethod( "getChooserShortcutPanelFiles" );
				File[] files = (File[]) m.invoke( fsv );

				// on macOS and Linux, files consists only of the user home directory
				if( files.length == 1 && files[0].equals( new File( System.getProperty( "user.home" ) ) ) )
					files = new File[0];

				return files;
			} else if( SystemInfo.isWindows ) {
				Class<?> cls = Class.forName( "sun.awt.shell.ShellFolder" );
				Method m = cls.getMethod( "get", String.class );
				return (File[]) m.invoke( null, "fileChooserShortcutPanelFolders" );
			}
		} catch( IllegalAccessException ex ) {
			// do not log because access may be denied via VM option '--illegal-access=deny'
		} catch( Exception ex ) {
			LoggingFacade.INSTANCE.logSevere( null, ex );
		}

		// fallback
		return new File[0];
	}
Java 8 - 11 on Windows: sun.awt.shell.ShellFolder.get( "fileChooserShortcutPanelFolders" )
<br>
Java 12: javax.swing.filechooser.FileSystemView.getChooserShortcutPanelFiles()

@since 3.4
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/JavaCompatibility2.java