void () { doTest(""" class C { { for (int i : arr) ; for (String s : new Iterable<String>() { @Override public Iterator<String> iterator() { return null; } }) ; try { } catch (Throwable t) { } catch (E1|E2 e) { } } }""", """ 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=Iterable<String>] METHOD:PsiMethodStub[iterator:Iterator<String>] MODIFIER_LIST:PsiModifierListStub[mask=1] ANNOTATION:PsiAnnotationStub[@Override] ANNOTATION_PARAMETER_LIST:PsiAnnotationParameterListStubImpl TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:] """); }