public static void expand(@NotNull JTree tree, int depth, @NotNull Runnable onDone) {
    promiseExpand(tree, depth).onSuccess(result -> EdtInvocationManager.invokeLaterIfNeeded(onDone));
  }
public static void expand(@NotNull JTree tree, int depth, @NotNull Runnable onDone)