LocalQuickFix (@NotNull PsiElement anchor) { final PsiMethodCallExpression parent = findCallExpression(anchor); if (parent == null) return null; boolean jdkOptional = OptionalUtil.JDK_OPTIONAL_OF_NULLABLE.test(parent); return new ReplaceOptionalCallFix(jdkOptional ? "empty" : "absent", true); }