void () { doTest(""" class A { /*Access can be package-private*/protected/**/ String myElement; static class B extends A { @Override public String toString() { return myElement; } } /*Access can be 'private'*/protected/**/ String myElement1; class B1 { @Override public String toString() { return myElement1; } } }"""); }