private static @NotNull Rectangle getCellBounds(@NotNull JTable table, int top, int bottom) {
    return table.getCellRect(top, 0, true).union(table.getCellRect(bottom,0,true));
  }
private static @NotNull Rectangle getCellBounds(@NotNull JTable table, int top, int bottom)