void () { setupLoadingFilter(); PsiClass enumClass = findClass("enums.OurEnumWithConstantsAndStaticFields"); PsiField[] fields = enumClass.getFields(); assertTrue(fields[0] instanceof PsiEnumConstant); assertTrue(fields[1] instanceof PsiEnumConstant); assertTrue(fields[2] instanceof PsiEnumConstant); assertFalse(fields[3] instanceof PsiEnumConstant); tearDownLoadingFilter(); assertEquals("public static final int A1 = 1;", fields[3].getText()); }