code: private static boolean hasModal_(RootPaneContainer rootPane) {
  	synchronized (modals) {
  	  Modal modal = modals.get(rootPane);
  	  if (modal != null && modal.getSize() > 0) {
  		return true;
  	  }
  	  return false;
  	}
    }
docs: Indicates whether the RootPaneContainer has a modal.
  
  @param rootPane
  the RootPaneContainer with a modal
  @return boolean