void () { JavaProjectCodeInsightSettings.setExcludedNames(getProject(), myFixture.getTestRootDisposable(), "foo"); myFixture.addClass("package foo; public class Outer { public static void method() {} }"); configure(); assertEquals(myFixture.getLookupElementStrings(), List.of("method")); }