private static boolean isLanguageLevelCompatible(PsiElement element, PsiMethod method) {
      LanguageLevel languageLevel = PsiUtil.getLanguageLevel(element);
      LanguageLevel lastIncompatibleLanguageLevel = LanguageLevelUtil.getLastIncompatibleLanguageLevel(method, languageLevel);
      return lastIncompatibleLanguageLevel == null || lastIncompatibleLanguageLevel.isLessThan(languageLevel);
    }
private static boolean isLanguageLevelCompatible(PsiElement element, PsiMethod method)