private static boolean isInsideTable(List<TableRow> table, int row, int column) {
    return row >= 0 && row < table.size() && column >= 0 && column < table.get(row).size();
  }
private static boolean isInsideTable(List<TableRow> table, int row, int column)