JBCefApp () { if (Holder.INSTANCE == null) { synchronized (Holder.class) { if (Holder.INSTANCE == null) { if (RegistryManager.getInstance().is("ide.browser.jcef.testMode.enabled")) { // Try again to initialize with probably different registry keys Holder.INSTANCE = Holder.init(); if (Holder.INSTANCE != null) { return Objects.requireNonNull(Holder.INSTANCE); } } throw new IllegalStateException("JCEF is not supported in this env or failed to initialize"); } } } return Objects.requireNonNull(Holder.INSTANCE); }