List<RatedResolveResult> (@NotNull PyImportedNameDefiner definer) { if (myLocalResolve) { final PyImportElement importElement = PyUtil.as(definer, PyImportElement.class); if (importElement != null) { return ResolveResultList.to(importElement.getElementNamed(myName, false)); } else { return Collections.emptyList(); } } return definer.multiResolveName(myName); }