void () { setRegistryProperty("ide.browser.jcef.headless.enabled", "false"); setRegistryProperty("ide.browser.jcef.testMode.enabled", "false"); assertFalse(JBCefApp.isSupported()); try { JBCefApp.getInstance(); fail(); } catch (IllegalStateException ignore) { } setRegistryProperty("ide.browser.jcef.headless.enabled", "true"); setRegistryProperty("ide.browser.jcef.testMode.enabled", "true"); assertTrue(JBCefApp.isSupported()); assertNotNull(JBCefApp.getInstance()); }