docs: public static RootPaneContainer findRootPaneContainer(final Component source) {
          Component comp = source;
          while ((comp != null) && !(comp instanceof RootPaneContainer)) {
              comp = comp.getParent();
          }
          if (comp instanceof RootPaneContainer) {
              return (RootPaneContainer) comp;
          }
          return null;
      }