private static PsiType genNewListBy(PsiType genericOwner, @NotNull PsiManager manager) {
    PsiClass list =
      JavaPsiFacade.getInstance(manager.getProject()).findClass(CommonClassNames.JAVA_UTIL_LIST, genericOwner.getResolveScope());
    PsiElementFactory factory = JavaPsiFacade.getElementFactory(manager.getProject());
    if (list == null) return factory.createTypeFromText(CommonClassNames.JAVA_UTIL_LIST, null);
    return factory.createType(list, PsiUtil.extractIterableTypeParameter(genericOwner, false));
  }
private static PsiType genNewListBy(PsiType genericOwner, @NotNull PsiManager manager)