}
private void applyRenamedVariables(FunctionDef extractedMethod) {
if (renamedVariables.size() > 0) {
LocalVarRenameVisitor renameVisitor = new LocalVarRenameVisitor(this.adapterPrefs);
renameVisitor.setRenameMap(renamedVariables);
try {
extractedMethod.accept(renameVisitor);
} catch (Exception e) {
throw new RuntimeException(e);
}