code: protected static Window[] getDisplayableWindows()
      {
          return Stream.of(Window.getWindows()).filter(Window::isDisplayable).toArray(Window[]::new);
      }
docs: Returns the displayable windows.
  @return an array containing the displayable windows