void (Object value,int row,int column) { TodoPattern pattern=myPatterns.get(row); switch (column) { case 0 -> pattern.getAttributes().setIcon((Icon)value); case 1 -> pattern.setCaseSensitive(((Boolean)value).booleanValue()); case 2 -> pattern.setPatternString(((String)value).trim()); default -> throw new IllegalArgumentException(); } }