question: private static String [ ] dependencyEnumSetToStringArray ( EnumSet < DependencyType > dependencySet ) { String [ ] stringDependencyTypes = null ; if ( dependencySet != null && dependencySet . size ( ) > 0 ) { int n = dependencySet . size ( ) ; int i = 0 ; stringDependencyTypes = new String [ n ] ; for ( DependencyType dependency : dependencySet ) { stringDependencyTypes [ i ++ ] = dependency . toString ( ) ; } } return stringDependencyTypes ; }
target:  Convert an EnumSet of DependencyType to an Array of Strings. 