public Statement buildStatement(final ParserRuleContext parseTree) {
    return build(Optional.of(getSources(parseTree)), parseTree);
  }
@Test
  public void shouldHandleSelectStructAllOnNestedStruct() {
    // Given:
    final SingleStatementContext stmt =
        givenQuery("SELECT NESTED_ORDER_COL->ITEMINFO->* FROM NESTED_STREAM;");

    // When:
    final Query result = (Query) builder.buildStatement(stmt);

    // Then:
    assertThat(result.getSelect(), is(new Select(ImmutableList.of(
        new StructAll(
            new DereferenceExpression(
                Optional.empty(),
                new UnqualifiedColumnReferenceExp(ColumnName.of("NESTED_ORDER_COL")),
                "ITEMINFO"
            ))
    ))));
  }