void (@NotNull PsiElement element) { for (PsiElement result : PyUtil.multiResolveTopPriority(element, resolveContext)) { if (result != null && isValidSameModuleDependency(result) && result != member) { myCollection.add((PsiNamedElement)result); } } super.visitElement(element); }