void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiElement qualifier = ObjectUtils.tryCast(element, PsiExpression.class); if (qualifier == null) return; if (myFalseIsAcceptable) { qualifier = qualifier.getParent(); } PsiExpression oldExpr = ObjectUtils.tryCast(PsiUtil.skipParenthesizedExprUp(qualifier), PsiExpression.class); if (oldExpr == null) return; PsiReplacementUtil.replaceExpression(oldExpr, createNewExprText(), new CommentTracker()); }