void () { myFixture.configureByText("a.java", """ class A { private static final long sss = 0L; static class B { private static final long sss = 0L; { <caret>int i = 0; } } } """); myFixture.completeBasic(); assertEquals(myFixture.getLookupElementStrings().stream().filter(it -> it.contains("sss")).toList(), List.of("A.sss", "sss")); }