private Set < Conversion > getRelatedConversions ( Control ctrl , Set < Conversion > set ) { for ( Process process : ctrl . getControlled ( ) ) { if ( process instanceof Conversion ) { set . add ( ( Conversion ) process ) ; } else if ( process instanceof Control ) { getRelatedConversions ( ( Control ) process , set ) ; } } return set ; }
Recursively searches the related Conversions of a Control .