boolean (Project project) { for (Module module : ModuleManager.getInstance(project).getModules()) { Sdk sdk = PythonSdkUtil.findPythonSdk(module); if (sdk != null && sdk.getSdkType() instanceof PythonSdkType) { return true; } } return false; }