BZ1172228: Guided Rule Editor: Only one method call is saved when calling multiple methods on a single variable

(cherry picked from commit a026860b23c58f81237308bdba600645fb1fb6da)