public @NotNull Promise<TreePath> resolve(TreePath path) {
    AsyncPromise<TreePath> async = new AsyncPromise<>();
    onValidThread(() -> resolve(async, path));
    return async;
  }
public @NotNull Promise<TreePath> resolve(TreePath path)