LanguageLevel (@Nullable String compilerComplianceOption) { if (compilerComplianceOption != null) { JavaSdkVersion sdkVersion = JavaSdkVersion.fromVersionString(compilerComplianceOption); if (sdkVersion != null) { return sdkVersion.getMaxLanguageLevel(); } } return null; }