void (Component component, Object constraints) { if (FILL_HORIZONTAL.equals(constraints)) { myFillComponents.add(component); } else if (constraints instanceof Integer) { myMaxComponents.put(component, (Integer)constraints); } }