public final @NotNull CompletableFuture<TreePath> invalidateAsync(@NotNull Object element, boolean structure) {
    return onValidThread(element, node -> invalidateInternal(node, structure));
  }
public final @NotNull CompletableFuture<TreePath> invalidateAsync(@NotNull Object element, boolean structure)