question: @ Override public List < Node > generate ( int popSize ) { List < Node > population = new ArrayList < > ( ) ; for ( int i = 0 ; i < popSize ; ) { Node candidate = grow ( 1 ) ; if ( candidate . isValid ( ) ) { population . add ( candidate ) ; i ++ ; } } return population ; }
target:  This method return a new population of the desired size. The population is generated by Growth algorithm which creates individual with a depth from 1 to a specified max depth,