VirtualFile (@Nullable String sdkPath) { if (sdkPath == null) { return null; } final VirtualFile homeDirectory = StandardFileSystems.local().findFileByPath(sdkPath); if (homeDirectory == null) { return null; } VirtualFile parentDirectory = homeDirectory.getParent(); if (parentDirectory == null) { return null; } final VirtualFile condaParent = SystemInfo.isWindows ? parentDirectory : parentDirectory.getParent(); return condaParent != null ? condaParent.findChild("conda-meta") : null; }