Context (@NotNull Project project, @NotNull PsiMethodCallExpression call) { if (!BoolUtils.isNegated(call)) return null; PsiElement nameElement = call.getMethodExpression().getReferenceNameElement(); if (nameElement == null) return null; if (myIsPresent) { return new Context("isEmpty"); } return new Context("isPresent"); }