ParenthesizedExpressionImpl extends PyTree implements ParenthesizedExpression, HasTypeDependencies { @Override public List<Expression> typeDependencies() { return Collections.singletonList(expression); } ParenthesizedExpressionImpl(Token leftParenthesis, Expression expression, Token rightParenthesis); @Override Token leftParenthesis(); @Override Expression expression(); @Override Token rightParenthesis(); @Override void accept(TreeVisitor visitor); @Override List<Tree> computeChildren(); @Override Kind getKind(); @Override InferredType type(); @Override List<Expression> typeDependencies();  }
@Test public void typeDependencies() { ParenthesizedExpressionImpl parenthesizedExpr = ((ParenthesizedExpressionImpl) lastExpression("(42)")); assertThat(parenthesizedExpr.typeDependencies()).containsExactly(parenthesizedExpr.expression()); }