public static <T> T getLast(List<T> list) {
        return list.get(list.size() - 1);
    }
@param <T>
@param list [!list.isEmpty()]
@return the last element of the list
stroom-core-client-widget/src/main/java/stroom/widget/htree/client/treelayout/internal/util/ListUtil.java