code: @Override
      public long calculateHeight(ImprintNode node) {
          Util.notNull(node, "Node");
          return hashTreeBuilder.calculateHeight(calculateNewNode(node));
      }
docs: Calculates the binary tree height if new leaf would be added.
  
  @param node a leaf to be added to the tree, must not be null. The level of the node must be 0.
  @return Hash tree height.
  @throws IllegalArgumentException if node level is greater than 0.