Object (int rowIndex, int columnIndex) { return switch (columnIndex) { case CHECK_COLUMN -> myShouldRename[rowIndex]; case OLD_NAME_COLUMN -> getElements().get(rowIndex); case NEW_NAME_COLUMN -> myNewNames[rowIndex]; default -> { LOG.assertTrue(false); yield null; } }; }