void (@NotNull ProblemReporter reporter, @NotNull NullabilityProblem<?> problem, @NotNull PsiMethodReferenceExpression methodRef) { PsiMethod target = tryCast(methodRef.resolve(), PsiMethod.class); if (target == null) return; PsiParameter[] parameters = target.getParameterList().getParameters(); if (parameters.length == 0) return; PsiParameter parameter = parameters[0]; if (!BaseIntentionAction.canModify(parameter) || !AnnotationUtil.isAnnotatingApplicable(parameter)) return; reporter.registerProblem(methodRef, problem.getMessage(IGNORE_ASSERT_STATEMENTS), LocalQuickFix.notNullElements(parameters.length == 1 ? AddAnnotationPsiFix.createAddNullableFix(parameter) : null)); }