private static void writeAndAppendScript(@NotNull GradleExecutionSettings effectiveSettings,
                                           @NotNull String initScript,
                                           @NotNull String initScriptPrefix) {
    var initScriptPrefixName = FileUtil.sanitizeFileName(initScriptPrefix);
    var initScriptPath = GradleInitScriptUtil.createInitScript(initScriptPrefixName, initScript);
    effectiveSettings.withArguments(GradleConstants.INIT_SCRIPT_CMD_OPTION, initScriptPath.toString());
  }
private static void writeAndAppendScript(@NotNull GradleExecutionSettings effectiveSettings,
                                           @NotNull String initScript,
                                           @NotNull String initScriptPrefix)