void (@NotNull PsiExpression argument, @NotNull PsiMethodCallExpression expression, PsiType argumentType, PsiType itemType) { if (!(argumentType instanceof PsiArrayType arrayType)) { return; } final PsiType componentType = arrayType.getComponentType(); PsiType actualType = getActualItemTypeIfMismatch(arrayType, expression, itemType); if (actualType != null) { registerError(argument, actualType, componentType, !(argument.getType() instanceof PsiArrayType)); } }