presto-parser/src/main/java/io/prestosql/type/TypeCalculation.java/IsSimpleExpressionVisitor/aggregateResult
class IsSimpleExpressionVisitor:        @Override
        protected Boolean aggregateResult(Boolean aggregate, Boolean nextResult)
        {
            return aggregate && nextResult;
        }