private static @Nullable PsiType eraseFreeTypeParameters(@Nullable PsiType psiType, @Nullable PsiClass containingClass) {
    if (containingClass == null) return null;
    return JavaPsiFacade.getElementFactory(containingClass.getProject()).createRawSubstitutor(containingClass).substitute(psiType);
  }
private static @Nullable PsiType eraseFreeTypeParameters(@Nullable PsiType psiType, @Nullable PsiClass containingClass)