List<RatedResolveResult> (@Nullable PsiElement parent, @NotNull String referencedName, @Nullable PsiFile containingFile, boolean fileOnly, boolean checkForPackage, boolean withoutStubs, boolean withoutForeign) { if (parent == null) { return Collections.emptyList(); } else if (parent instanceof PyFile) { return resolveInPackageModule((PyFile)parent, referencedName, containingFile, fileOnly, checkForPackage, withoutStubs, withoutForeign); } else if (parent instanceof PsiDirectory) { return resolveInPackageDirectory(parent, referencedName, containingFile, fileOnly, checkForPackage, withoutStubs, withoutForeign); } else { return resolveMemberFromReferenceTypeProviders(parent, referencedName); } }