void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { if (!(startElement instanceof PsiPolyadicExpression expression)) { return; } PsiExpression[] operands = expression.getOperands(); if (operands.length < 1) return; PsiExpression operand = operands[0]; CommentTracker tracker = new CommentTracker(); String text = tracker.text(operand, ParenthesesUtils.TYPE_CAST_PRECEDENCE); tracker.replace(operand, "(" + myCastTo + ")" + text); }