Binding binding = x.binding;
JNode node = typeMap.get(binding);
if (!(node instanceof JVariable)) {
return null;
}
JVariable variable = (JVariable) node;
JExpression curRef = createVariableRef(info, variable, binding);
if (x.genericCast != null) {
JType castType = (JType) typeMap.get(x.genericCast);
curRef = maybeCast(castType, curRef);