Do not call this method directly, use Platform.getCurrentRecursionDepth().
Platform.getCurrentRecursionDepth()