public static boolean isSupported( Action action ) {
		if( SystemInfo.isJava_9_orLater ) {
			try {
				return Desktop.getDesktop().isSupported( Enum.valueOf( Desktop.Action.class, action.name() ) );
			} catch( Exception ex ) {
				LoggingFacade.INSTANCE.logSevere( null, ex );
				return false;
			}
		} else if( SystemInfo.isMacOS )
			return true;
		else
			return false;
	}
Checks whether the given action is supported on the current platform.
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatDesktop.java