throw new RuntimeException(String.format("Error calculating the type of parameter %s of method call %s", param, call), e);
}
}
}
Context context = JavaParserFactory.getContext(call, typeSolver);
<BUG>Optional<MethodUsage> methodUsage = context.solveMethodAsUsage(call.getName(), params, typeSolver);
</BUG>
if (!methodUsage.isPresent()) {
throw new RuntimeException("Method '" + call.getName() + "' cannot be resolved in context "
+ call + " (line: " + call.getRange().begin.line + ") " + context + ". Parameter types: " + params);

throw new RuntimeException(String.format("Error calculating the type of parameter %s of method call %s", param, call), e);
}
}
}
Context context = JavaParserFactory.getContext(call, typeSolver);
Optional<MethodUsage> methodUsage = context.solveMethodAsUsage(call.getName().getId(), params, typeSolver);
if (!methodUsage.isPresent()) {
throw new RuntimeException("Method '" + call.getName() + "' cannot be resolved in context "
+ call + " (line: " + call.getRange().begin.line + ") " + context + ". Parameter types: " + params);
