@ Weight ( Weight . Unit . VARIABLE ) @ Nonnull public static StackTraceElement stackElement ( ) { final StackTraceElement [ ] allElements = Thread . currentThread ( ) . getStackTrace ( ) ; return allElements [ 2 ] ; }
Get the stack element of the method caller .