void (@NotNull DfType type, @NotNull PsiElement anchor) { DfaNullability nullability = DfaNullability.fromDfType(type); if (nullability == DfaNullability.NOT_NULL) { holder.registerProblem(anchor, JavaAnalysisBundle.message("dataflow.message.passing.non.null.argument.to.optional"), LocalQuickFix.notNullElements(DfaOptionalSupport.createReplaceOptionalOfNullableWithOfFix(anchor))); } else if (nullability == DfaNullability.NULL) { holder.registerProblem(anchor, JavaAnalysisBundle.message("dataflow.message.passing.null.argument.to.optional"), LocalQuickFix.notNullElements(DfaOptionalSupport.createReplaceOptionalOfNullableWithEmptyFix(anchor))); } }