void () { for (Iterator<Window> iter = activatedWindows.iterator(); iter.hasNext(); ) { Window window = iter.next(); if (!window.isFocusableWindow() || !window.isVisible() || ComponentUtil.isMinimized(window) || AppUIUtil.isInFullScreen(window) || (window instanceof Frame && ((Frame) window).isUndecorated()) || (window instanceof Dialog && ((Dialog) window).isUndecorated()) || UIUtil.isSimpleWindow(window) ) { iter.remove(); } } // The list can be empty if all windows are in fullscreen or minimized state }