void () { final PyParameterInfo firstParam = new PyParameterInfo(0, "*foo", null, false); firstParam.setName("*bar"); doValidationTest(null, Arrays.asList(firstParam, new PyParameterInfo(1, "**bar", null, false)), PyPsiBundle.message("ANN.duplicate.param.name")); }