void () { doTest(""" public @interface Anno { int i() default 42; public static String s(); } private class C { public C() throws Exception { } public abstract void m(final int i, int[] a1, int a2[], int[] a3[]); private static int v2a(int... v) [] { return v; } } interface I { void m1(); default void m2() { } }""", """ PsiJavaFileStub [] IMPORT_LIST:PsiImportListStub CLASS:PsiClassStub[interface annotation name=Anno fqn=Anno] MODIFIER_LIST:PsiModifierListStub[mask=1] TYPE_PARAMETER_LIST:PsiTypeParameterListStub EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] ANNOTATION_METHOD:PsiMethodStub[annotation i:int default=42] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:] ANNOTATION_METHOD:PsiMethodStub[annotation s:String] MODIFIER_LIST:PsiModifierListStub[mask=9] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:] CLASS:PsiClassStub[name=C fqn=C] MODIFIER_LIST:PsiModifierListStub[mask=2] TYPE_PARAMETER_LIST:PsiTypeParameterListStub EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] METHOD:PsiMethodStub[cons C:null] MODIFIER_LIST:PsiModifierListStub[mask=1] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:Exception] METHOD:PsiMethodStub[m:void] MODIFIER_LIST:PsiModifierListStub[mask=1025] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub PARAMETER:PsiParameterStub[i:int] MODIFIER_LIST:PsiModifierListStub[mask=16] PARAMETER:PsiParameterStub[a1:int[]] MODIFIER_LIST:PsiModifierListStub[mask=0] PARAMETER:PsiParameterStub[a2:int[]] MODIFIER_LIST:PsiModifierListStub[mask=0] PARAMETER:PsiParameterStub[a3:int[][]] MODIFIER_LIST:PsiModifierListStub[mask=0] THROWS_LIST:PsiRefListStub[THROWS_LIST:] METHOD:PsiMethodStub[varargs v2a:int[]] MODIFIER_LIST:PsiModifierListStub[mask=10] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub PARAMETER:PsiParameterStub[v:int...] MODIFIER_LIST:PsiModifierListStub[mask=0] THROWS_LIST:PsiRefListStub[THROWS_LIST:] CLASS:PsiClassStub[interface name=I fqn=I] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub EXTENDS_LIST:PsiRefListStub[EXTENDS_LIST:] IMPLEMENTS_LIST:PsiRefListStub[IMPLEMENTS_LIST:] METHOD:PsiMethodStub[m1:void] MODIFIER_LIST:PsiModifierListStub[mask=0] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:] METHOD:PsiMethodStub[m2:void] MODIFIER_LIST:PsiModifierListStub[mask=512] TYPE_PARAMETER_LIST:PsiTypeParameterListStub PARAMETER_LIST:PsiParameterListStub THROWS_LIST:PsiRefListStub[THROWS_LIST:] """); }