code: private static void closeAllModals_(RootPaneContainer rootPane) {
  	synchronized (modals) {
  	  Modal modal = modals.get(rootPane);
  	  if (modal != null) {
  		modal.closeAll();
  		modals.remove(rootPane);
  	  }
  	}
    }
docs: Close all modals of a specific RootPaneContainer.
  
  @param rootPane
  the RootPaneContainer with a modal