void (@NotNull PsiCallExpression callExpression) { PsiExpressionList argList = callExpression.getArgumentList(); JavaResolveResult result = callExpression.resolveMethodGenerics(); PsiMethod method = (PsiMethod)result.getElement(); if (method == null || argList == null) return; PsiSubstitutor substitutor = result.getSubstitutor(); PsiParameter[] parameters = method.getParameterList().getParameters(); PsiExpression[] arguments = argList.getExpressions(); for (int i = 0; i < arguments.length; i++) { PsiExpression argument = arguments[i]; if (i < parameters.length && (i < parameters.length - 1 || !MethodCallInstruction.isVarArgCall(method, substitutor, arguments, parameters))) { checkCollectionNullityOnAssignment(argument, substitutor.substitute(parameters[i].getType()), argument); } } }