private static ThreadLocal<AtomicInteger> getMethodDepthCounter(String method) {
        synchronized (sMethodDepth) {
            ThreadLocal<AtomicInteger> counter = sMethodDepth.get(method);
            if (counter == null) {
                counter = new ThreadLocal<AtomicInteger>() {
                    protected AtomicInteger initialValue() {
                        return new AtomicInteger();
                    }
                };
                sMethodDepth.put(method, counter);
            }
            return counter;
        }
    }
Returns the current depth counter for the given method.
See {@link #incrementMethodDepth} for details.

@param method The method name. Should be prefixed with a unique, module-specific string.
@return The updated depth.
android/android_framework/base/src/main/java/util/XposedHelpers.java