void () { addMagicConstant(); myFixture.addClass(""" import org.intellij.lang.annotations.MagicConstant; interface PsiModifier { @NonNls String PUBLIC = "public"; @NonNls String PROTECTED = "protected"; @MagicConstant(stringValues = { PUBLIC, PROTECTED }) @interface ModifierConstant { } } interface ModifierList { boolean hasModifierProperty(@PsiModifier.ModifierConstant String m) {} } """); }