public final @NotNull Promise<TreePath> invalidate(@NotNull Object element, boolean structure) {
    return Promises.asPromise(invalidateAsync(element, structure));
  }
public final @NotNull Promise<TreePath> invalidate(@NotNull Object element, boolean structure)