boolean (XmlTag tag) { for (XmlTagRuleProvider ruleProvider : XmlTagRuleProvider.EP_NAME.getExtensionList()) { for (XmlTagRuleProvider.Rule rule : ruleProvider.getTagRule(tag)) { if (rule.needAtLeastOneAttribute(tag)) { return true; } } } return false; }