void () { setLanguageLevel(LanguageLevel.JDK_1_8); doTest(conflicts -> assertSameElements(conflicts.values(), Collections.singletonList("Static method <b><code>foo()</code></b> can't be pushed to non-static local class <b><code>FooExt</code></b>"))); }