public static boolean isToStrikeout(LookupElement item) {
    final List<PsiMethod> allMethods = JavaCompletionUtil.getAllMethods(item);
    if (allMethods != null){
      for (PsiMethod method : allMethods) {
        if (!method.isValid()) { //?
          return false;
        }
        if (!JavaDeprecationUtils.isDeprecated(method, null)) {
          return false;
        }
      }
      return true;
    }
    PsiElement element = item.getPsiElement();
    return element != null && JavaDeprecationUtils.isDeprecated(element, null);
  }
public static boolean isToStrikeout(LookupElement item)