Object (final int rowIndex, final int columnIndex) { final String scopeName = myScopes.get(rowIndex); return switch (columnIndex) { case SCOPE_COLUMN -> myDefaultScopeName.equals(scopeName) ? "Everywhere else" : scopeName; case SEVERITY_COLUMN -> myScopeToAverageSeverityMap.get(scopeName); default -> throw new IllegalArgumentException(); }; }