private static void requestFocusInNonFocusedWindow(@Nullable Component component) {
    Window window = ComponentUtil.getWindow(component);
    if (window != null && !UIUtil.isFocusAncestor(window)) {
      Component focusable = UIUtil.isFocusable(component) ? component : findDefaultFocusableComponent(component);
      if (focusable != null) focusable.requestFocus();
    }
  }
private static void requestFocusInNonFocusedWindow(@Nullable Component component)