public <T> ObjectFormatter<? super T> getObjectFormatter(T object) {
        if (objectFormatters == null) {
            return null;
        }

        Class<? super T> clazz;
        Class<? super T> superClazz = (Class<? super T>) object.getClass();
        ObjectFormatter<? super T> formatter;
        do {
            clazz = superClazz;
            formatter = (ObjectFormatter<? super T>) objectFormatters.get(clazz);
            superClazz = clazz.getSuperclass();
        } while (formatter == null && superClazz != null);
        return formatter;
    }
Get {@link ObjectFormatter} for specific object.

@param object the object
@param <T>    the type of object
@return the object formatter for the object, or null if not found
@since 1.1.0
android/android_framework/base/src/main/java/com/elvishew/xlog/LogConfiguration.java