@NotNull
  private static List<? extends RatedResolveResult> convertDirsToInit(@NotNull List<? extends RatedResolveResult> ratedResolveList) {
    return ContainerUtil.map(ratedResolveList, result -> {
      final PsiElement element = result.getElement();
      if (element instanceof PsiDirectory) {
        final PsiElement pkgInit = PyUtil.turnDirIntoInit(element);
        return pkgInit != null ? result.replace(pkgInit) : result;
      }
      else {
        return result;
      }
    });
  }
@NotNull
  private static List<? extends RatedResolveResult> convertDirsToInit(@NotNull List<? extends RatedResolveResult> ratedResolveList)