void () { final JavaPsiFacade facade = JavaPsiFacade.getInstance(getProject()); final PsiType pointType = facade.getElementFactory().createTypeFromText("Point", null); doTest(null, null, null, method -> { return new ParameterInfoImpl[]{ ParameterInfoImpl.create(1).withName("p2").withType(pointType) }; }, false); }