void (@NotNull PsiMethodReferenceExpression methodRef) { if (!OptionalUtil.OPTIONAL_GET.methodReferenceMatches(methodRef)) return; if (isOptionalProblem(methodRef, new JavaMethodReferenceArgumentAnchor(methodRef))) { holder.registerProblem(methodRef, JavaBundle.message("inspection.optional.get.without.is.present.method.reference.message")); } }