callees.addAll(functionManager.getCallees((PyElement)element));
}
final Map<PsiElement, PyHierarchyNodeDescriptor> calleeToDescriptorMap = new HashMap<PsiElement, PyHierarchyNodeDescriptor>();
PsiElement baseClass = element instanceof PyFunction ? ((PyFunction)element).getContainingClass() : null;
for (PsiElement callee : callees) {
<BUG>if (baseClass != null && !isInScope(baseClass, callee, myScopeType)) continue;
</BUG>
PyHierarchyNodeDescriptor calleeDescriptor = calleeToDescriptorMap.get(callee);
if (calleeDescriptor == null) {
calleeDescriptor = new PyHierarchyNodeDescriptor(descriptor, callee, false);

callees.addAll(functionManager.getCallees((PyElement)element));
}
final Map<PsiElement, PyHierarchyNodeDescriptor> calleeToDescriptorMap = new HashMap<PsiElement, PyHierarchyNodeDescriptor>();
PsiElement baseClass = element instanceof PyFunction ? ((PyFunction)element).getContainingClass() : null;
for (PsiElement callee : callees) {
if (isInScope(baseClass, callee, myScopeType)) {
PyHierarchyNodeDescriptor calleeDescriptor = calleeToDescriptorMap.get(callee);
if (calleeDescriptor == null) {
calleeDescriptor = new PyHierarchyNodeDescriptor(descriptor, callee, false);
