public static Rule unusedIfPresent(String attrPresent, String ... attrUnused) {
    Effect[] effects = new Effect[attrUnused.length];
    for (int i = 0; i < effects.length; i++) {
      effects[i] = unused(
        attrUnused[i], XmlAnalysisBundle.message("xml.inspections.attribute.unused.because.other.attribute.present", attrUnused[i], attrPresent));
    }

    return new ConditionRule(ifAttrPresent(attrPresent), effects);
  }
public static Rule unusedIfPresent(String attrPresent, String ... attrUnused)