private boolean checkIfExpressionContainsColumn(Expression expression){
  if (expression instanceof ColumnExpression) {
    return true;
  }
  for (  Expression child : expression.getChildren()) {
    if (checkIfExpressionContainsColumn(child)) {
      return true;
    }
  }
  return false;
}

private boolean checkIfExpressionContainsColumn ( Expression expression ) { if ( expression instanceof ColumnExpression ) { return true ; } for ( Expression child : expression . getChildren ( ) ) { if ( checkIfExpressionContainsColumn ( child ) ) { return true ; } } return false ; }
this method will check if a given expression contains a column expression recursively .
