boolean (@NotNull PsiElement file) { Module module = ModuleUtilCore.findModuleForPsiElement(file); if (module == null) return false; Sdk jdk = ModuleRootManager.getInstance(module).getSdk(); if (jdk == null) return false; JavaSdkVersion version = JavaSdkVersionUtil.getJavaSdkVersion(jdk); if (version == null) return false; boolean is_1_5 = version.isAtLeast(JavaSdkVersion.JDK_1_5); return DaemonCodeAnalyzerSettings.getInstance().isSuppressWarnings() && is_1_5 && PsiUtil.isLanguageLevel5OrHigher(file); }