callers.addAll(functionManager.getCallers((PyElement)element));
}
final HashMap<PsiElement, PyHierarchyNodeDescriptor> callerToDescriptorMap = new HashMap<PsiElement, PyHierarchyNodeDescriptor>();
PsiElement baseClass = element instanceof PyFunction ? ((PyFunction)element).getContainingClass() : null;
for (PsiElement caller : callers) {
<BUG>if (baseClass != null && !isInScope(baseClass, caller, myScopeType)) continue;
</BUG>
PyHierarchyNodeDescriptor callerDescriptor = callerToDescriptorMap.get(caller);
if (callerDescriptor == null) {
callerDescriptor = new PyHierarchyNodeDescriptor(descriptor, caller, false);

callers.addAll(functionManager.getCallers((PyElement)element));
}
final HashMap<PsiElement, PyHierarchyNodeDescriptor> callerToDescriptorMap = new HashMap<PsiElement, PyHierarchyNodeDescriptor>();
PsiElement baseClass = element instanceof PyFunction ? ((PyFunction)element).getContainingClass() : null;
for (PsiElement caller : callers) {
if (isInScope(baseClass, caller, myScopeType)) {
PyHierarchyNodeDescriptor callerDescriptor = callerToDescriptorMap.get(caller);
if (callerDescriptor == null) {
callerDescriptor = new PyHierarchyNodeDescriptor(descriptor, caller, false);
