void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final GrUnaryExpression expression = (GrUnaryExpression)element; GrExpression operand = (GrExpression)PsiUtil.skipParentheses(expression.getOperand(), false); if (operand instanceof GrUnaryExpression prefixExpression) { final GrExpression innerOperand = prefixExpression.getOperand(); if (innerOperand == null) { return; } GrInspectionUtil.replaceExpression(expression, innerOperand.getText()); } else if (operand instanceof GrBinaryExpression binaryExpression) { final GrExpression lhs = binaryExpression.getLeftOperand(); final String lhsText = lhs.getText(); final StringBuilder builder = new StringBuilder(lhsText); builder.append("=="); final GrExpression rhs = binaryExpression.getRightOperand(); if (rhs != null) { final String rhsText = rhs.getText(); builder.append(rhsText); } GrInspectionUtil.replaceExpression(expression, builder.toString()); } }