sbool tableColumnNameIs(JTable table, int colIdx, S colName) { ret swing(func -> bool { colIdx >= 0 && colIdx < table.getColumnCount() && eq(table.getColumnName(colIdx), colName) }); }