Leaves should use Leaves.class, not Tree.class