Sdk (@Nullable Module module) { final Sdk moduleSDK = PythonSdkUtil.findPythonSdk(module); if (moduleSDK != null && getLanguageLevelForSdk(moduleSDK).isPython2()) { return moduleSDK; } return findPython2Sdk(PythonSdkUtil.getAllSdks()); }