code: function trimTrailingWhitespacesForRemainingRange() {
                  var startPosition = previousRange ? previousRange.end : originalRange.pos;
                  var startLine = sourceFile.getLineAndCharacterOfPosition(startPosition).line;
                  var endLine = sourceFile.getLineAndCharacterOfPosition(originalRange.end).line;
                  trimTrailingWhitespacesForLines(startLine, endLine + 1, previousRange);
              }
docs: Trimming will be done for lines after the previous range