Here you can find the source of getNonNull(List
public static <T> List<T> getNonNull(List<T> list)
//package com.java2s; //License from project: LGPL import java.util.Collections; import java.util.List; public class Main { public static <T> List<T> getNonNull(List<T> list) { if (list == null) { return Collections.emptyList(); }// ww w . ja va2s .c o m return list; } }