void () { foo = 3; synchronized(this) { <warning descr="Access to static field 'foo' locked on instance data">foo</warning> = 3; System.out.println(<warning descr="Access to static field 'foo' locked on instance data">foo</warning>); LIST.get(0); } }