LanguageLevel (@NotNull Module module) { if (ApplicationManager.getApplication().isUnitTestMode() && LanguageLevel.FORCE_LANGUAGE_LEVEL != null) { return LanguageLevel.FORCE_LANGUAGE_LEVEL; } final Sdk sdk = PythonSdkUtil.findPythonSdk(module); return PythonRuntimeService.getInstance().getLanguageLevelForSdk(sdk); }