@Nullable
  public PsiElement getSelectedElement(Object userObject) {
    if (userObject instanceof TodoDirNode descriptor) {
      return descriptor.getValue();
    }

    else if (userObject instanceof TodoFileNode descriptor) {
      return descriptor.getValue();
    }
    return null;
  }
@Nullable
  public PsiElement getSelectedElement(Object userObject)