private static boolean mentionsTypeArgument(PsiExpression expression, PsiType type) {
    if (!(expression instanceof PsiMethodCallExpression call)) return false;
    PsiMethod method = call.resolveMethod();
    if (method == null) return false;
    return PsiTypesUtil.mentionsTypeParameters(type, Set.of(method.getTypeParameters()));
  }
private static boolean mentionsTypeArgument(PsiExpression expression, PsiType type)