static boolean isCefBrowserCreationStarted(@NotNull CefBrowser browser) {
    // Temporary use reflection to avoid jcef-version increment
    // TODO: use isNativeBrowserCreationStarted directly
    try {
      Method m = browser.getClass().getMethod("isNativeBrowserCreationStarted");
      return (boolean)m.invoke(browser);
    }
    catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException ignored) {
    }

    // Fallback to old logic (incorrect in general, since creation is always started before native ref obtained)
    if (browser instanceof CefNativeAdapter)
      return ((CefNativeAdapter)browser).getNativeRef("CefBrowser") != 0;
    return false;
  }
static boolean isCefBrowserCreationStarted(@NotNull CefBrowser browser)