boolean (Module module) { Sdk sdk = ReadAction.compute(() -> ModuleRootManager.getInstance(module).getSdk()); if (sdk != null) { String versionString = sdk.getVersionString(); LanguageLevel languageLevel = LanguageLevel.parse(versionString); if (languageLevel != null && languageLevel.isLessThan(LanguageLevel.JDK_1_6)) return false; } return true; }