Object (int rowIndex, int columnIndex) { return switch (columnIndex) { case CHECKED_COLUMN -> myCheckedMarks[rowIndex]; case FIELD_COLUMN -> myFieldNames[rowIndex]; case GETTER_COLUMN -> myGetterNames[rowIndex]; case SETTER_COLUMN -> mySetterNames[rowIndex]; default -> throw new RuntimeException("Incorrect column index"); }; }