In this expression return Thread.currentThread().getStackTrace()[2].getMethodName(); I don't understand what the [2] means in each of the functions. I have read the documentation, I have searched but I am not able to find anything that explains that. Thank you very much in advance.