void () { List<List<? extends CharSequence>> result = new ArrayList<>(); for (CharSequence charSequence : getListExtends()) { List<? extends CharSequence> list = asList(charSequence); result.add(list); } List<? extends List<? extends CharSequence>> res2 = result; System.out.println(res2); }