public static List<? extends RatedResolveResult> asImportedResults(@Nullable List<? extends RatedResolveResult> from,
                                                                     @Nullable PyImportedNameDefiner nameDefiner) {
    if (ContainerUtil.isEmpty(from)) {
      return Collections.emptyList();
    }
    return ContainerUtil.map(from, res -> new ImportedResolveResult(res.getElement(), res.getRate(), nameDefiner));
  }
public static List<? extends RatedResolveResult> asImportedResults(@Nullable List<? extends RatedResolveResult> from,
                                                                     @Nullable PyImportedNameDefiner nameDefiner)