private static void addControlsRecursive ( Interaction inter , Set < Interaction > set ) { for ( Control ctrl : inter . getControlledOf ( ) ) { set . add ( ctrl ) ; addControlsRecursive ( ctrl , set ) ; } }
Adds controls of the given interactions recursively to the given set .