@ApiStatus.Internal
  public static Long findVisibleWindowByPid(long pid) {
    if (X11 == null) return null;
    try {
      var rootWindow = X11.getRootWindow(0);
      return X11.findProcessWindow(rootWindow, pid, 0);
    }
    catch (Exception e) {
      return null;
    }
  }
@ApiStatus.Internal
  public static Long findVisibleWindowByPid(long pid)