public static @NotNull Promise<?> promiseExpand(@NotNull JTree tree, int depth) {
    return promiseExpand(tree, depth, path -> depth < Integer.MAX_VALUE || isIncludedInExpandAll(path));
  }
public static @NotNull Promise<?> promiseExpand(@NotNull JTree tree, int depth)