VirtualFile (@NotNull Sdk pythonSdk) { final VirtualFile libDir; if (isVirtualEnv(pythonSdk)) { libDir = PySearchUtilBase.findVirtualEnvLibDir(pythonSdk); } else { libDir = PySearchUtilBase.findLibDir(pythonSdk); } return libDir != null ? libDir.findChild(PyNames.SITE_PACKAGES) : null; }