void () { FileBasedIndex.getInstance().ignoreDumbMode(DumbModeAccessType.RELIABLE_DATA_ONLY, () -> { assertNull(myFixture.getJavaFacade().findClass(MagicConstant.class.getName(), GlobalSearchScope.allScope(myFixture.getProject()))); }); myFixture.configureByText("a.java", "import java.util.*;\nclass Bar {\n static void foo(Calendar c) {\n c.setFirstDayOfWeek(<caret>)\n }\n}\n"); myFixture.completeBasic(); myFixture.assertPreferredCompletionItems(0, "FRIDAY", "MONDAY"); assertFalse(myFixture.getLookupElementStrings().contains("JANUARY")); assertFalse(myFixture.getLookupElementStrings().contains("Calendar.JANUARY")); }