question: @ SuppressWarnings ( "unchecked" ) public Collection < IgniteInternalFuture < T > > futures ( ) { synchronized ( sync ) { if ( futs == null ) return Collections . emptyList ( ) ; if ( futs instanceof IgniteInternalFuture ) return Collections . singletonList ( ( IgniteInternalFuture < T > ) futs ) ; return new ArrayList < > ( ( Collection < IgniteInternalFuture < T > > ) futs ) ; } }
target:  Gets collection of futures.