void () { doTest(""" package x; class Record { java.util.List<Inner> getRecord() { return null; } static class Inner {} void x(Inner2 inner) {} class Inner2 {} \s Inner3 field; class Inner3 {} \s private Inner4 field2; class /*Access can be 'private'*/Inner4/**/ {} \s private void y(Inner5 i) {} class /*Access can be 'private'*/Inner5/**/ {}}"""); }