static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.daemon.impl.quickfix.VariableTypeFix");
private final PsiType myReturnType;
protected final String myName;
public VariableTypeFix(@NotNull PsiVariable variable, PsiType toReturn) {
super(variable);
<BUG>myReturnType = toReturn != null ? GenericsUtil.getVariableTypeByExpressionType(toReturn) : null;
myName = variable.getName();</BUG>
}
@NotNull
@Override

static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.daemon.impl.quickfix.VariableTypeFix");
private final PsiType myReturnType;
protected final String myName;
public VariableTypeFix(@NotNull PsiVariable variable, PsiType toReturn) {
super(variable);
myReturnType = GenericsUtil.getVariableTypeByExpressionType(toReturn);
myName = variable.getName();
}
@NotNull
@Override
