void (@NotNull PsiPrefixExpression expression) { super.visitPrefixExpression(expression); if (!JavaTokenType.EXCL.equals(expression.getOperationTokenType())) { return; } final PsiExpression operand = PsiUtil.skipParenthesizedExprDown(expression.getOperand()); if (!(operand instanceof PsiBinaryExpression binaryExpression)) { return; } final IElementType tokenType = binaryExpression.getOperationTokenType(); if (JavaTokenType.EQEQ.equals(tokenType)) { registerError(expression.getOperationSign(), "=="); } else if (JavaTokenType.NE.equals(tokenType)) { registerError(expression.getOperationSign(), "!="); } }