code: private Expression transformInlineConstants(Expression exp) {
          if (exp instanceof PropertyExpression) {
              PropertyExpression pe = (PropertyExpression) exp;
              if (pe.getObjectExpression() instanceof ClassExpression) {
                  ClassExpression ce = (ClassExpression) pe.getObjectExpression();
                  ClassNode type = ce.getType();
                  if (type.isEnum()) return exp;
                  Expression constant = findConstant(type.getField(pe.getPropertyAsString()));
                  if (constant != null) return constant;
              }
          } else if (exp instanceof ListExpression) {
              ListExpression le = (ListExpression) exp;
              ListExpression result = new ListExpression();
              for (Expression e : le.getExpressions()) {
                  result.addExpression(transformInlineConstants(e));
              }
              return result;
          }
  
          return exp;
      }
docs: resolve constant-looking expressions statically (do here as gets transformed away later)