LanguageLevel (@Nullable Sdk sdk) { if (sdk != null && PythonSdkUtil.isPythonSdk(sdk)) { final PythonSdkFlavor flavor = PythonSdkFlavor.getFlavor(sdk); if (flavor != null) { return flavor.getLanguageLevel(sdk); } } return LanguageLevel.getDefault(); }