// Exile target attacking creature.
this.getSpellAbility().addEffect(new ExileTargetEffect());
this.getSpellAbility().addTarget(new TargetAttackingCreature());
// Cycling {5}{G}{W}{U}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{G}{W}{U}")));
// When you cycle Resounding Silence, exile up to two target attacking creatures.
Ability ability = new CycleTriggeredAbility(new ExileTargetEffect());
TargetPermanent target = new TargetAttackingCreature(0, 2, new FilterAttackingCreature("up to two target attacking creatures"), false);
ability.addTarget(target);
this.addAbility(ability);