}
private void provideFunctionInserterWithTester(ScriptTestUi debugUi) {
// TODO: Get the TestScriptProvider from the ScriptTestUi. We need to refactor
// ScriptTestUi for that (and for other reasons as well!).
TestScriptProvider testProvider = getTestProvider();
ScriptDebugModel debugModel = debugUi.getModel();
FunctionTester tester = new DefaultFunctionTester(testProvider, debugModel, translator);
functionInserterLookup.setFunctionTester(tester);
ExpressionParser parser = new ExpressionParser(model.getSource());
functionInserterLookup.setExpressionParser(parser);