VirtualFile () { final String path = System.getenv().get("PYENV_ROOT"); if (!StringUtil.isEmpty(path)) { final VirtualFile pyEnvRoot = LocalFileSystem.getInstance().findFileByPath(FileUtil.expandUserHome(path).replace('\\', '/')); if (pyEnvRoot != null) { return pyEnvRoot.findFileByRelativePath("versions"); } } final VirtualFile userHome = LocalFileSystem.getInstance().findFileByPath(SystemProperties.getUserHome().replace('\\','/')); if (userHome != null) { return userHome.findFileByRelativePath(".pyenv/versions"); } return null; }