DependentMembersCollectorBase (Object clazz, Object superClass) { if (clazz instanceof PyClass) { return new PyDependentClassMembersCollector((PyClass)clazz, (PyClass)superClass); } else if (clazz instanceof PyFile) { return new PyDependentModuleMembersCollector(((PyFile)clazz)); } return null; }