public GroovyScriptSupplier(GlobalContext global, String groovyScript, Optional<String> scriptName) {
GroovyShellPlugin groovy = global.plugin(GroovyShellPlugin.class);
this.parseResult = new BearParserScriptSupplier.BearScriptParseResult(
Lists.newArrayList(
new ScriptItem(scriptName, groovy.cmdAnnotation(), Variables.LINE_SPLITTER.splitToList(groovyScript), 1)
),
Collections.<BearParserScriptSupplier.ScriptError>emptyList());
}