void () { list.forEach(i -> { new Runnable() { int xxx = 0; @Override public void run() { this.xxx = 5; // this stays the same } }.run(); Sample.this.a++; // have to be qualified Sample.super.foo(); // have to be qualified a++; foo(); }); }