class MoreObjects {

    public static String toString(Class clazz) {
        if (clazz == null) {
            return "null";
        }
        return clazz.getName() + "[" + toString(clazz.getClassLoader()) + "]";
    }

}