ColumnType (int column) { final int count = (getColumnCount() - 1) / 2; if (column == count) return ColumnType.OPERATION; if (column > count) { column = getColumnCount() - 1 - column; } return switch (column) { case 0 -> ColumnType.NAME; case 1 -> mySettings.showSize ? ColumnType.SIZE : ColumnType.DATE; case 2 -> ColumnType.DATE; default -> throw new IllegalArgumentException(String.valueOf(column)); }; }