void () { doTest(""" enum E { E1() { }; abstract void m(); } public enum U { U1, U2 }""", """ PsiJavaFileStub [] IMPORT_LIST:PsiImportListStub CLASS:PsiClassStub[enum name=E fqn=E] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] ENUM_CONSTANT:PsiFieldStub[enumconst E1:E] MODIFIER_LIST:PsiModifierListStub[mask=0] ENUM_CONSTANT_INITIALIZER:PsiClassStub[anonymous enumInit name=null fqn=null baseref=E] METHOD:PsiMethodStub[m:void] MODIFIER_LIST:PsiModifierListStub[mask=1024] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:] CLASS:PsiClassStub[enum name=U fqn=U] MODIFIER_LIST:PsiModifierListStub[mask=1] TYPE_PARAMETER_LIST:PsiTypeParameterListStub EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] ENUM_CONSTANT:PsiFieldStub[enumconst U1:U] MODIFIER_LIST:PsiModifierListStub[mask=0] ENUM_CONSTANT:PsiFieldStub[enumconst U2:U] MODIFIER_LIST:PsiModifierListStub[mask=0] """); }