public static void destroy(Collection c) {
        if (c == null || c.isEmpty()) {
            return;
        }

        for (Object o : c) {
            destroy(o);
        }
    }
Calls {@link #destroy(Object) destroy} for each object in the collection.
If the collection is {@code null} or empty, this method returns quietly.

@param c the collection of objects to destroy.
@since 0.9
src/main/java/org/apache/shiro/lang/util/LifecycleUtils.java