void () { myUserTable.stopEditing(); final Map<String, String> envs = new LinkedHashMap<>(); for (EnvironmentVariable variable : myUserTable.getEnvironmentVariables()) { if (StringUtil.isEmpty(variable.getName()) && StringUtil.isEmpty(variable.getValue())) continue; envs.put(variable.getName(), variable.getValue()); } for (EnvironmentVariable variable : mySystemTable.getEnvironmentVariables()) { if (myParent.isModifiedSysEnv(variable)) { envs.put(variable.getName(), variable.getValue()); } } myParent.setEnvs(envs); myParent.setPassParentEnvs(isIncludeSystemVars()); super.doOKAction(); }