code: protected static List<JDialog> findPopups() {
          //find all popups
          List<JDialog> popupFound = new ArrayList<>();
          for (Window window : getDisplayableWindows()) {
              //			LOGGER.debug("parse window - type : " + window.getClass());
              if (isAPopup(window)) {
                  //it's maybe a popup... a popup is modal and not resizable and containt a JOptionPane component.
                  JDialog dialog = (JDialog) window;
                  LOGGER.trace("Find a popup with the title '" + dialog.getTitle() + "'.");
                  popupFound.add(dialog);
              }
          }
          return popupFound;
      }
docs: Finds all popups. A Component is a popup if it's a JDialog, modal and not resizable.
  
  @return the list of all found popups.