private TreeModelListener createTreeModelListener(final Tree tree) {
    return new TreeModelAdapter() {
      @Override
      public void treeStructureChanged(TreeModelEvent e) {
        resize(e.getTreePath(), tree);
      }
    };
  }
private TreeModelListener createTreeModelListener(final Tree tree)