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