Sdk (@Nullable Module module) { if (module == null || module.isDisposed()) return null; final Sdk sdk = ModuleRootManager.getInstance(module).getSdk(); if (sdk != null && isPythonSdk(sdk)) return sdk; return PyModuleService.getInstance().findPythonSdk(module); }