@Override
  protected void toggleExpandState(TreePath path) {
    if (!tree.isExpanded(path) && tree instanceof Tree) {
      ((Tree)tree).startMeasuringExpandDuration(path);
    }
    super.toggleExpandState(path);
  }
@Override
  protected void toggleExpandState(TreePath path)