void (String expectedName, PsiField field) { assertTrue(field instanceof PsiEnumConstant); assertEquals(expectedName, field.getName()); assertTrue(field.hasModifierProperty(PsiModifier.PUBLIC)); assertTrue(field.hasModifierProperty(PsiModifier.FINAL)); assertTrue(field.hasModifierProperty(PsiModifier.STATIC)); }