docs: public void showDialog(boolean showRoot, String panel) {
          expandRoot();
          
          try {
              DefaultMutableTreeNode node = null;
              if (panel != null) {
                  node = getTreeNodeFromPanelName(panel);
              }
              
              if (node == null) {
                  if (nameLastSelectedPanel != null) {
                      node = getTreeNodeFromPanelName(nameLastSelectedPanel);
                      
                  } else if (showRoot) {
                      node = (DefaultMutableTreeNode) getTreeModel().getRoot();
                      
                  } else if (((DefaultMutableTreeNode) getTreeModel().getRoot()).getChildCount() > 0) {
                      node = (DefaultMutableTreeNode) ((DefaultMutableTreeNode) getTreeModel().getRoot()).getChildAt(0);
                  }
              }
              
              if (node != null) {
                  showParamPanel(node.toString());
              }
              
          } catch (Exception e) {
              // ZAP: log errors
              log.error(e.getMessage(), e);
          }
      }