GrExpression (GrStatement selectedExpr) { if (!(selectedExpr instanceof GrExpression selected)) return null; while (selected instanceof GrParenthesizedExpression) selected = ((GrParenthesizedExpression)selected).getOperand(); return selected; }