String (IComponent component) { for (LwButtonGroup group : myButtonGroups) { final String[] ids = group.getComponentIds(); for (String id : ids) { if (id.equals(component.getId())) { return group.getName(); } } } return null; }