void (PsiLocalVariable[] vars) { for (PsiLocalVariable var : vars) { PsiType newType = GenericsUtil.getVariableTypeByExpressionType(mySubstitutor.substitute(var.getType())); var.getTypeElement().replace(JavaPsiFacade.getElementFactory(myProject).createTypeElement(newType)); } }