void (Module module, @NotNull IComponent component, FormErrorCollector collector) { final IRootContainer root = FormEditingUtil.getRoot(component); if (root == null) return; String groupName = root.getButtonGroupName(component); if (groupName != null) { final String[] sameGroupComponents = root.getButtonGroupComponentIds(groupName); for(String id: sameGroupComponents) { final IComponent otherComponent = FormEditingUtil.findComponent(root, id); if (otherComponent != null && otherComponent != component) { return; } } collector.addError(getID(), component, null, UIDesignerBundle.message("inspection.one.button.group.error")); } }