void (@NotNull Map<String, String> environment, @NotNull Sdk sdk) { final Map<String, String> virtualEnv = PySdkUtil.activateVirtualEnv(sdk); if (!virtualEnv.isEmpty()) { for (Map.Entry<String, String> entry : virtualEnv.entrySet()) { final String key = entry.getKey(); final String value = entry.getValue(); if (environment.containsKey(key)) { if (key.equalsIgnoreCase(PySdkUtil.PATH_ENV_VARIABLE)) { PythonEnvUtil.addToPathEnvVar(environment.get(key), value, false); } } else { environment.put(key, value); } } } }