private static JavaParameters createJavaParameters(@NotNull Module module) throws ExecutionException {
    JavaParameters res = GroovyScriptRunConfiguration.createJavaParametersWithSdk(module);
    DefaultGroovyScriptRunner.configureGenericGroovyRunner(
      res, module, "groovy.ui.GroovyMain",
      !hasNeededDependenciesToRunConsole(module), true, true, false
    );
    res.getProgramParametersList().addAll("-p", GroovyScriptRunner.getPathInConf("console.groovy"));
    res.setWorkingDirectory(getWorkingDirectory(module));
    res.setUseDynamicClasspath(true);
    if (useArgsFile(res)) {
      res.setArgFile(true);
    }
    return res;
  }
private static JavaParameters createJavaParameters(@NotNull Module module)