PsiType (PsiArrayType initial, PsiType created) { PsiArrayType result = new PsiArrayType(created); while (initial.getComponentType() instanceof PsiArrayType) { initial = (PsiArrayType)initial.getComponentType(); result = new PsiArrayType(result); } return result; }