public void removeAll() {
    if (rootNode.getChildren().size() == 1) {
      removeNode(rootNode.getChildren().get(0));
    }

    for (final ICriterionTreeListener listener : listeners) {
      try {
        listener.removedAll(this);
      } catch (final Exception e) {
        logger.atSevere().withCause(e).log("Remove all tree Nodes");
      }
    }
  }
Root node of the criterion tree.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/criteriadialog/expressionmodel/CriterionTree.java