boolean (@Nullable PsiElement element, @Nullable PyImportedNameDefiner definer) { final ScopeOwner owner = ScopeUtil.getScopeOwner(definer != null ? definer : element); if (myOwner == null) { myOwner = owner; } final boolean sameScope = owner == myOwner; if (sameScope) { addResult(element, definer); } return sameScope; }