void () { // "Ignore local variables in static methods" option toggles this warning String <warning descr="Local variable 'field' hides field in class 'Outer'">field</warning> = "hello"; System.out.println(field); }