Object (int rowIndex, int columnIndex) { final M memberInfo = myTable.myMemberInfos.get(rowIndex); return switch (columnIndex) { case CHECKED_COLUMN -> { if (myTable.myMemberInfoModel.isMemberEnabled(memberInfo)) { yield memberInfo.isChecked(); } else { yield myTable.myMemberInfoModel.isCheckedWhenDisabled(memberInfo); } } case ABSTRACT_COLUMN -> myTable.getAbstractColumnValue(memberInfo); case DISPLAY_NAME_COLUMN -> memberInfo.getDisplayName(); default -> throw new RuntimeException("Incorrect column index"); }; }