void () { PsiElementFactory factory = myJavaFacade.getElementFactory(); PsiMethod method = factory.createMethodFromText("void foo (int ... args) {}", null); PsiType paramType = method.getParameterList().getParameters()[0].getType(); assertTrue(paramType instanceof PsiEllipsisType); PsiType arrayType = ((PsiEllipsisType)paramType).getComponentType().createArrayType(); assertTrue(paramType.isAssignableFrom(arrayType)); assertTrue(arrayType.isAssignableFrom(paramType)); PsiType typeFromText = factory.createTypeFromText("int ...", null); assertTrue(typeFromText instanceof PsiEllipsisType); }