void (String[] args) { class Inner { class <warning descr="Inner class 'Nested' may be 'static'">Nested</warning> {} } new Object() { class <warning descr="Inner class 'Y' may be 'static'">Y</warning> {} }; }