void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (element instanceof GrBinaryExpression expression) { final String replacementString = calculateSimplifiedBinaryExpression(expression); GrInspectionUtil.replaceExpression(expression, replacementString); } else { final GrUnaryExpression expression = (GrUnaryExpression)element; final String replacementString = calculateSimplifiedPrefixExpression(expression); GrInspectionUtil.replaceExpression(expression, replacementString); } }