final MetaMethod method = (staticMethod) ? callType.getBestMatchingStaticMethod(methodName, parameterTypes)
: callType.getBestMatchingMethod(methodName, parameterTypes);
if (method == null) {
if (context.isPermissiveMode()) {
final UndefinedMethodException udme = new UndefinedMethodException(statement.getType(), methodName, parameterTypes);
GenUtil.rewriteBlameStackTrace(blame);
udme.initCause(blame);
udme.printStackTrace();
dummyReturn(writer, context);
return;
}
else {
final UndefinedMethodException udme = new UndefinedMethodException(statement.getType(), methodName, parameterTypes);
GenUtil.rewriteBlameStackTrace(blame);
udme.initCause(blame);
throw udme;
}
}
if (method.getGenericParameterTypes() != null) {