PsiElement (PyImportElement importElement, @NotNull final QualifiedName prefix) { final PsiElement resolved = ResolveImportUtil.resolveImportElement(importElement, prefix); final PsiElement packageInit = PyUtil.turnDirIntoInit(resolved); return packageInit != null ? packageInit : resolved; }