Warning for having same name for class and local variable

I think it would be nice it IDEA could warn that the user is using the same name for both class and local variable.

public class ABC {
private String name;

public void doSomething() {
String name = "def";
....
}
}

Please sign in to leave a comment.