@Override
  public boolean isAcceptable(Object element, PsiElement context) {
    PsiType type = myType;
    if (type == null) {
      JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(context.getProject());
      final PsiClass aClass = psiFacade.findClass(myClassName, context.getResolveScope());
      if (aClass != null) {
        type = psiFacade.getElementFactory().createType(aClass, PsiSubstitutor.EMPTY);
      }
    }
    if (type == null) return false;
    if (element == null) return false;
    if (element instanceof PsiType) return type.isAssignableFrom((PsiType)element);

    PsiSubstitutor substitutor = null;

    if (element instanceof CandidateInfo info) {
      substitutor = info.getSubstitutor();
      element = info.getElement();
    }

    return isAcceptable((PsiElement)element, context, type, substitutor);
  }
@Override
  public boolean isAcceptable(Object element, PsiElement context)