boolean (@Nullable Module module) { final Sdk sdk = PythonSdkUtil.findPythonSdk(module); if (sdk == null) return false; final List<PyPackage> packages = PyPackageManager.getInstance(sdk).getPackages(); return packages != null && PyPsiPackageUtil.findPackage(packages, "setuptools") != null; }