return new PyRenameFunctionProcess(definition);
}
if (NodeUtils.isImport(definition.ast)) {
//this means that we found an import and we cannot actually map that import to a definition
//(so, it is an unresolved import)
return new PyRenameImportProcess(definition);
}
} else {
//the definition ast is null. This should mean that it was actually an import
//and pointed to some module
return new PyRenameImportProcess(definition);
}
if (definition.scope != null) {
//classvar
if (definition.scope.isLastClassDef()) {