void () { doTest("class C {\n" + " void m() {\n" + " int local = 0;\n" + " Object r = new Runnable() {\n" + " public void run() { }\n" + " };\n" + " for (int loop = 0; loop < 10; loop++) ;\n" + " try (Resource r = new Resource()) { }\n" + " try (Resource r = new Resource() {\n" + " @Override public void close() { }\n" + " }) { }\n" + " }\n" + "}", "PsiJavaFileStub []\n" + " IMPORT_LIST:PsiImportListStub\n" + " CLASS:PsiClassStub[name=C fqn=C]\n" + " MODIFIER_LIST:PsiModifierListStub[mask=4096]\n" + " TYPE_PARAMETER_LIST:PsiTypeParameterListStub\n" + " EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:]\n" + " IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:]\n" + " METHOD:PsiMethodStub[m:void]\n" + " MODIFIER_LIST:PsiModifierListStub[mask=4096]\n" + " TYPE_PARAMETER_LIST:PsiTypeParameterListStub\n" + " PARAMETER_LIST:PsiParameterListStub\n" + " THROWS_LIST:PsiRefListStub[THROWS_LIST:]\n" + " ANONYMOUS_CLASS:PsiClassStub[anonymous name=null fqn=null baseref=Runnable]\n" + " METHOD:PsiMethodStub[run:void]\n" + " MODIFIER_LIST:PsiModifierListStub[mask=1]\n" + " TYPE_PARAMETER_LIST:PsiTypeParameterListStub\n" + " PARAMETER_LIST:PsiParameterListStub\n" + " THROWS_LIST:PsiRefListStub[THROWS_LIST:]\n" + " ANONYMOUS_CLASS:PsiClassStub[anonymous name=null fqn=null baseref=Resource]\n" + " METHOD:PsiMethodStub[close:void]\n" + " MODIFIER_LIST:PsiModifierListStub[mask=1]\n" + " ANNOTATION:PsiAnnotationStub[@Override]\n" + " ANNOTATION_PARAMETER_LIST:PsiAnnotationParameterListStubImpl\n" + " TYPE_PARAMETER_LIST:PsiTypeParameterListStub\n" + " PARAMETER_LIST:PsiParameterListStub\n" + " THROWS_LIST:PsiRefListStub[THROWS_LIST:]\n"); }