void (PsiMethod method, ProblemsHolder holder, NullableNotNullManager nullableManager, int parameterIdx, PsiParameter parameter) { if (!REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER || !holder.isOnTheFly()) return; PsiElement elementToHighlight = null; NullabilityAnnotationInfo info = nullableManager.findOwnNullabilityInfo(parameter); if (info != null && !info.isInferred()) { if (info.getNullability() == Nullability.NOT_NULL) { PsiAnnotation notNullAnnotation = info.getAnnotation(); boolean physical = PsiTreeUtil.isAncestor(parameter, notNullAnnotation, true); elementToHighlight = physical ? notNullAnnotation : parameter.getNameIdentifier(); } } else if (DfaPsiUtil.getTypeNullability(parameter.getType()) == Nullability.NOT_NULL) { elementToHighlight = parameter.getNameIdentifier(); } if (elementToHighlight == null || !JavaNullMethodArgumentUtil.hasNullArgument(method, parameterIdx)) return; reportProblem(holder, elementToHighlight, createNavigateToNullParameterUsagesFix(parameter), "inspection.nullable.problems.NotNull.parameter.receives.null.literal", getPresentableAnnoName(parameter)); }