boolean (@NotNull PsiExpression expression) { if (!(expression instanceof PsiPolyadicExpression polyadicExpression)) { return false; } final IElementType tokenType = polyadicExpression.getOperationTokenType(); return tokenType.equals(JavaTokenType.EQEQ) || tokenType.equals(JavaTokenType.NE); }