AppIcon () { if (ourIcon == null) { if (GraphicsEnvironment.isHeadless() || GraphicsUtil.isRemoteEnvironment()) { ourIcon = new EmptyIcon(); } else if (SystemInfoRt.isMac) { ourIcon = new MacAppIcon(); } else if (StartupUiUtil.isXToolkit()) { ourIcon = new XAppIcon(); } else if (StartupUiUtil.isWaylandToolkit()) { ourIcon = new WLAppIcon(); } else if (SystemInfoRt.isWindows && JnaLoader.isLoaded()) { ourIcon = new Win7AppIcon(); } else { ourIcon = new EmptyIcon(); } } return ourIcon; }