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