void () { doTest(""" class C { { new O.P() { }; X.new Y() { }; f(p -> new R() { }); } }""", """ PsiJavaFileStub [] IMPORT_LIST:PsiImportListStub CLASS:PsiClassStub[name=C fqn=C] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] CLASS_INITIALIZER:PsiClassInitializerStub MODIFIER_LIST:PsiModifierListStub[mask=0] ANONYMOUS_CLASS:PsiClassStub[anonymous name=null fqn=null baseref=O.P] ANONYMOUS_CLASS:PsiClassStub[anonymous name=null fqn=null baseref=Y inqualifnew] LAMBDA_EXPRESSION:FunctionalExpressionStub ANONYMOUS_CLASS:PsiClassStub[anonymous name=null fqn=null baseref=R] """); }