Remove dependency of java.util.List and java.util.ArrayList