public static @Nullable PsiExpression getArgumentForParameter(@NotNull PsiCall call, @NotNull PsiParameter parameter) {
    PsiMethod scope = tryCast(parameter.getDeclarationScope(), PsiMethod.class);
    if (scope == null) return null;
    int index = scope.getParameterList().getParameterIndex(parameter);
    PsiExpressionList argList = call.getArgumentList();
    if (argList == null) return null;
    PsiExpression[] args = argList.getExpressions();
    if (index >= args.length) return null;
    if (parameter.isVarArgs() && !isVarArgCall(call)) return null;
    return args[index];
  }
public static @Nullable PsiExpression getArgumentForParameter(@NotNull PsiCall call, @NotNull PsiParameter parameter)