You can use Thread.currentThread().getStackTrace() in Util.method .
To get the last call before Util.method , you can do something like this:
public class Util { ... public static void method() { StackTraceElement[] st = Thread.currentThread().getStackTrace();
source share