@TestOnly
  @Deprecated(forRemoval = true)
  @NotNull
  public Promise<TreePath> promisePathToElement(@NotNull Object element) {
    TreeVisitor visitor = createVisitor(element);
    if (visitor == null || myTree == null) return Promises.rejectedPromise();
    return TreeUtil.promiseVisit(myTree, visitor);
  }
@TestOnly
  @Deprecated(forRemoval = true)
  @NotNull
  public Promise<TreePath> promisePathToElement(@NotNull Object element)