class DebugSectionUtils {

    static <T> T castToTypeOrNull(Object object, Class<T> clazz) {
        return clazz.isInstance(object) ? clazz.cast(object) : null;
    }

    private  DebugSectionUtils();

}