is there a good way to create a utils that we will call the name of the method in which it was used?
@NoArgsConstructor(access = PRIVATE)
public class NameUtils {
public static String getMethodName(){
...
}
}
public class MyClass {
public void methodName(){
String name = NameUtils.getMethodName() //should return 'methodName'
}
}