public static boolean canHave15Suppressions(@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.isAvailable(JavaFeature.ANNOTATIONS, file);
  }
public static boolean canHave15Suppressions(@NotNull PsiElement file)