code: public QuickWindow getQuickWindow(QuickWidgetSearchType property, String value) {
      QuickWindow lastFound = null;
      List<QuickWindow> windows = getQuickWindowList();
  
      for (QuickWindow window : windows) {
        if (property.equals(QuickWidgetSearchType.NAME)) {
          if (window.getName().equals(value)) {
            if (window.isOnScreen()) {
              return window;
            } else {
              lastFound = window;
            }
          }
        }
      }
      return lastFound;
    }
docs: Note: This grabs the first window with a matching name, there might be more