code: public static <R, C, V> TreeBasedTable<R, C, V> create(TreeBasedTable<R, C, ? extends V> table) {
      TreeBasedTable<R, C, V> result =
          new TreeBasedTable<>(table.rowComparator(), table.columnComparator());
      result.putAll(table);
      return result;
    }
docs: Creates a {@code TreeBasedTable} with the same mappings and sort order as the specified {@code
  TreeBasedTable}.