private static void expandNodeIfNotTooWide(Tree tree, PackageDependenciesNode node) {
    int count = node.getChildCount();
    if (count > 5) return;
    tree.expandPath(new TreePath(node.getPath()));
  }
private static void expandNodeIfNotTooWide(Tree tree, PackageDependenciesNode node)