private static boolean isIncludedInExpandAll(@NotNull TreePath path) {
    var value = getLastUserObject(path);
    if (value instanceof AbstractTreeNode<?> node) {
      return node.isIncludedInExpandAll();
    }
    else {
      return true;
    }
  }
private static boolean isIncludedInExpandAll(@NotNull TreePath path)