boolean (LookupElement element, CompletionLocation location) { PsiElement e = element.getPsiElement(); return e != null && JavaDeprecationUtils.isDeprecated(e, location.getCompletionParameters().getPosition()); }