class CollectionHelper {

    public static <T> T getLast(List<T> list) {
        Validate.notNull(list, "list must not be null");
        return list.isEmpty() ? null : list.get(list.size() - 1);
    }

    private  CollectionHelper();

}