private void addPathToList(DefaultMutableTreeNode root, ArrayList<? super String> list) {
      String path = getPath(root, false);
      if (!StringUtil.isEmpty(path)) {
        list.add(path);
      }
    }
private void addPathToList(DefaultMutableTreeNode root, ArrayList<? super String> list)