void (@NotNull Project project, @NotNull PsiMethodCallExpression call, @NotNull Context context) { PsiPrefixExpression negation = tryCast(PsiUtil.skipParenthesizedExprUp(call.getParent()), PsiPrefixExpression.class); if (negation == null || BoolUtils.getNegated(negation) != call) return; ExpressionUtils.bindCallTo(call, context.myReplacement); new CommentTracker().replaceAndRestoreComments(negation, call); }