private static boolean jbrMoveSupported(Component component) {
    if (StartupUiUtil.isWaylandToolkit()) {
      return (component instanceof Window window) && window.getType() != Window.Type.POPUP;
    } else {
      // The JBR team states that isWindowMoveSupported works only for Frame/Dialog
      return (component instanceof Frame || component instanceof Dialog)
             && JBR.isWindowMoveSupported();
    }
  }
private static boolean jbrMoveSupported(Component component)