static boolean isCefBrowserCreated(@NotNull CefBrowser cefBrowser) {
    CefDelegate delegate = getCefDelegate();
    if (delegate != null) {
      return delegate.isInitialized(cefBrowser);
    }
    if (cefBrowser instanceof CefNativeAdapter)
      return ((CefNativeAdapter)cefBrowser).getNativeRef("CefBrowser") != 0; // [tav] todo: this can be thread race prone

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