ILineRange selectionBefore = getLineRange(document, movingArea);
IRewriteTarget target = null;
if (pyEdit != null) {
target = (IRewriteTarget) pyEdit.getAdapter(IRewriteTarget.class);
if (target != null) {
target.beginCompoundChange();
if (!getMoveUp()) {
//When going up we'll just do a single document change, so, there's
//no need to set the redraw.
target.setRedraw(false);
}