void (CodeStyleSettings settings) { for (int i = 0; i < myModel.size(); i++) { Object o = myModel.getElementAt(i); if (o == null) { throw new IllegalArgumentException("unexpected " + o); } PropertyManager propertyManager = PROPERTIES.get(o.toString()); if (propertyManager == null) { throw new IllegalArgumentException("unexpected " + o); } propertyManager.apply(settings, i + 1); } }