private void renameSociety(DefaultMutableTreeNode node) {
private void renameSociety() { DefaultMutableTreeNode node = getSelectedNode();
  private void renameSociety(DefaultMutableTreeNode node) {    SocietyComponent societyComponent =      (SocietyComponent) node.getUserObject();    String name = JOptionPane.showInputDialog("New society name");    renameSociety(node, name);  }