Add self_and_descendants method for Tree plugin