If you want to sort Nodes, and the foo#getStuff method returns <V> then you would have to have Foo as a parameterised class, with a formal type parameter <V> and instantiate that as
private Foo<Node> foo;
. . .
foo = new Foo<Node>();
At least I think so; I am not sure on this point. You might be able to achieve what you want with type inference, which you will find from one of the links below, under "methods and constructors."
The whole idea of generics is to maintain type-safety by restricting the different types permitted in a particular context. I presume you have been through
the Java Tutorials, here and
here, where you find "methods and constructors". And also do a Google search for "Angelika Langer
Java Generics" where you will find lots of useful information.