this.moduleAdapter = req.getOffsetNode().getModule();
this.offsetAdapter = req.getOffsetNode();
if (req instanceof IExtractMethodRefactoringRequest) {
this.scopeAdapter = ((IExtractMethodRefactoringRequest) req).getScopeAdapter();
}
this.nodeHelper = new NodeHelper(req.getAdapterPrefs());
this.adapterPrefs = req.getAdapterPrefs();
this.astFactory = new PyAstFactory(this.nodeHelper.getAdapterPrefs());
}