Variable leftVariable = null;
VariableBase leftHandSide = node.getLeftHandSide();
if (leftHandSide instanceof Variable) {
leftVariable = (Variable) leftHandSide;
}
ClassInstanceCreation instance = (ClassInstanceCreation) rightHandSide;
String variable = CodeUtils.extractVariableName(leftVariable);
String className = CodeUtils.extractQualifiedName(instance.getClassName().getName());
instances.put(variable, className);
}
}
super.visit(node);
}