boolean (PsiElement element) { if (element != null && PsiUtil.getLanguageLevel(element).compareTo(myLanguageLevel) < 0) { return false; } for (Class context : myContexts) { if (context.isInstance(element)) return true; } return false; }