@Override
  public boolean isAcceptable(Object element, PsiElement context){
    if(element instanceof CandidateInfo candidateInfo) {
      final PsiElement psiElement = candidateInfo.getElement();
      
      return myFilter.isAcceptable(psiElement, context);
    }
    else if(element instanceof PsiElement)
      return myFilter.isAcceptable(element, context);
    return false;
  }
@Override
  public boolean isAcceptable(Object element, PsiElement context)