import java.util.ArrayList; class Test { <T> ArrayList<T> foo () { return new ArrayList<>(); } }