public static PsiClassType.@NotNull ClassResolveResult captureTopLevelWildcards(PsiClassType.@NotNull ClassResolveResult result) {
    PsiClass aClass = result.getElement();
    if (aClass == null) return result;
    PsiClassType updatedType = getSubstitutorWithWildcardsCaptured(aClass, result);
    return updatedType == null ? result : updatedType.resolveGenerics();
  }
public static PsiClassType.@NotNull ClassResolveResult captureTopLevelWildcards(PsiClassType.@NotNull ClassResolveResult result)