if (nodeHelper.isClassDef(node)) {
return new ClassDefAdapter(moduleAdapter, parent, (ClassDef) node, moduleAdapter.getAdapterPrefs());
} else if (nodeHelper.isFunctionDef(node)) {
return new FunctionDefAdapter(moduleAdapter, parent, (FunctionDef) node, moduleAdapter.getAdapterPrefs());
} else {
return new SimpleAdapter(moduleAdapter, parent, node, moduleAdapter.getAdapterPrefs());
}
}