void (@NotNull PsiElement element) { final PsiUnaryExpression expression = (PsiUnaryExpression)element; CommentTracker commentTracker = new CommentTracker(); commentTracker.markUnchanged(expression.getOperand()); PsiReplacementUtil.replaceExpression(expression, getReplacementText(element), commentTracker); }