IButtonGroup (final IRootContainer radRootContainer, @NotNull final IComponent component) { for (IButtonGroup group : radRootContainer.getButtonGroups()) { if (ArrayUtil.contains(component.getId(), group.getComponentIds())) { return group; } } return null; }