public final @NotNull Promise<TreePath> invalidate(@NotNull TreePath path, boolean structure) {
    return Promises.asPromise(onValidThread(path, node -> invalidateInternal(node, structure)));
  }
public final @NotNull Promise<TreePath> invalidate(@NotNull TreePath path, boolean structure)