void () { doTest(""" class A { void foo(){ record turn<A> } }""", """ PsiJavaFileStub [] IMPORT_LIST:PsiImportListStub CLASS:PsiClassStub[name=A fqn=A] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] METHOD:PsiMethodStub[foo:void] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:] CLASS:PsiClassStub[record name=turn fqn=null] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub TYPE_PARAMETER:PsiTypeParameter[A] EXTENDS_BOUND_LIST:PsiRefListStub[EXTENDS_BOUNDS_LIST:] EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] """); }