public static @NotNull List<Object> collectExpandedUserObjects(@NotNull JTree tree) {
    return collectExpandedObjects(tree, TreeUtil::getLastUserObject);
  }
public static @NotNull List<Object> collectExpandedUserObjects(@NotNull JTree tree)