question: public static void extractDimensionsAndMeasuresFromExpression ( List < CustomAggregateExpression > expressions , List < CarbonDimension > dims , List < CarbonMeasure > msrs ) { for ( CustomAggregateExpression expression : expressions ) { List < CarbonColumn > dimsFromExpr = expression . getReferredColumns ( ) ; for ( CarbonColumn dimFromExpr : dimsFromExpr ) { if ( ! dimFromExpr . isDimesion ( ) ) { msrs . add ( ( CarbonMeasure ) dimFromExpr ) ; } else { dims . add ( ( CarbonDimension ) dimFromExpr ) ; } } } }
target:  Below method will be used to extract the dimension and measure from the expression