@Override
  public boolean isCompilerVersionAtLeast(@NotNull PsiElement element, @NotNull JavaSdkVersion version) {
    if (super.isCompilerVersionAtLeast(element, version)) return true;
    Project project = element.getProject();
    JavaSdkVersion projectVersion = JavaSdkVersionUtil.getJavaSdkVersion(ProjectRootManager.getInstance(project).getProjectSdk());
    if (projectVersion != null && projectVersion.isAtLeast(version)) return true;
    for (Module module : ModuleManager.getInstance(project).getModules()) {
      JavaSdkVersion moduleVersion = JavaSdkVersionUtil.getJavaSdkVersion(ModuleRootManager.getInstance(module).getSdk());
      if (moduleVersion != null && moduleVersion.isAtLeast(version)) return true;
    }
    return false;
  }
@Override
  public boolean isCompilerVersionAtLeast(@NotNull PsiElement element, @NotNull JavaSdkVersion version)