void () { assertNull(createElement("").getPsiType()); assertSame(PsiTypes.intType(), createElement("<a>int</a>").getPsiType()); final PsiType psiType = createElement("<a>java.lang.String</a>").getPsiType(); assertEquals(CommonClassNames.JAVA_LANG_STRING, assertInstanceOf(psiType, PsiClassType.class).getCanonicalText()); final PsiType arrayType = createElement("<a>int[]</a>").getPsiType(); assertTrue(arrayType instanceof PsiArrayType); assertSame(PsiTypes.intType(), ((PsiArrayType) arrayType).getComponentType()); }