@Override
public JExpression injectMagic(final TreeLogger logger, final JMethodCall methodCall, final JMethod currentMethod,
final Context context, final UnifyAstView ast) throws UnableToCompleteException {
final JClassLiteral clazz = ReflectionUtilAst.extractClassLiteral(logger, methodCall, 0, ast);
final JType type = clazz.getRefType();
if (type == null) {
logger.log(Type.WARN, "ClassLiteral with null reftype: "+clazz.toSource());
return null;
}
return get(type.getName(), new ReflectionGeneratorContext(
logger, clazz, methodCall, currentMethod, context, ast));
}