public List < Object > stepsInstances ( List < CandidateSteps > candidateSteps ) { List < Object > instances = new ArrayList <> ( ) ; for ( CandidateSteps steps : candidateSteps ) { if ( steps instanceof Steps ) { instances . add ( ( ( Steps ) steps ) . instance ( ) ) ; } } return instances ; }
Returns the steps instances associated to CandidateSteps