Rule (String attrPresent, String ... attrUnused) { return new ConditionRule(ifAttrPresent(attrPresent), new InvalidAllExpectSome( XmlAnalysisBundle.message("xml.inspections.all.attributes.unused.because.an.attribute.present", attrPresent), ProblemHighlightType.LIKE_UNUSED_SYMBOL, ArrayUtil.append(attrUnused, attrPresent))); }