public static boolean isTheCurrentWindowOnTheActivatedList(Window w) {
    updateActivatedWindowSet();
    return activatedWindows.contains(w);
  }
public static boolean isTheCurrentWindowOnTheActivatedList(Window w)