import java.util.*; public class Test { List> getList () { return new ArrayList> (); } public void test2 (Test arg) { final List> collection = result; collection = arg.getList (); } }