private ImmutableList < Node > getCallParams ( Node n ) { Preconditions . checkArgument ( n . isCall ( ) , "Expected a call node, found %s" , n ) ; ImmutableList . Builder < Node > builder = new ImmutableList . Builder <> ( ) ; for ( int i = 0 ; i < getCallParamCount ( n ) ; i ++ ) { builder . add ( getCallArgument ( n , i ) ) ; } return builder . build ( ) ; }
Copying is unnecessarily inefficient .