@Override
  public void collect(final PsiNamedElement member) {
    if (member.getContainingFile() == myModule) {
      final PyResolveContext resolveContext = PyResolveContext.defaultContext(TypeEvalContext.codeInsightFallback(member.getProject()));
      final PsiElement memberBody = PyMoveModuleMembersHelper.expandNamedElementBody(member);
      assert memberBody != null;
      memberBody.accept(new PyRecursiveElementVisitor() {
        @Override
        public void visitElement(@NotNull PsiElement element) {
          for (PsiElement result : PyUtil.multiResolveTopPriority(element, resolveContext)) {
            if (result != null && isValidSameModuleDependency(result) && result != member) {
              myCollection.add((PsiNamedElement)result);
            }
          }
          super.visitElement(element);
        }
      });
    }
  }
@Override
  public void collect(final PsiNamedElement member)