void (@NotNull SimpleProgramParameters parameters, @NotNull CommonProgramRunConfigurationParameters configuration) { Project project = configuration.getProject(); Module module = getModule(configuration); Map<String, String> envs = new HashMap<>(); if (configuration instanceof EnvFilesOptions) { envs.putAll(configureEnvsFromFiles((EnvFilesOptions)configuration, true)); } envs.putAll(configuration.getEnvs()); EnvironmentUtil.inlineParentOccurrences(envs); for (Map.Entry<String, String> each : envs.entrySet()) { each.setValue(expandPath(each.getValue(), module, project)); } parameters.setEnv(envs); parameters.getProgramParametersList().patchMacroWithEnvs(envs); String parametersString = expandPathAndMacros(configuration.getProgramParameters(), module, project); parameters.getProgramParametersList().addParametersString(parametersString); parameters.setWorkingDirectory(getWorkingDir(configuration, project, module)); parameters.setPassParentEnvs(configuration.isPassParentEnvs()); }