void ( @NotNull PsiBinaryExpression expression) { super.visitBinaryExpression(expression); final PsiExpression rhs = PsiUtil.skipParenthesizedExprDown(expression.getROperand()); final PsiExpression lhs = PsiUtil.skipParenthesizedExprDown(expression.getLOperand()); if (rhs == null || lhs == null) return; if (!ComparisonUtils.isComparison(expression)) return; if (lhs instanceof PsiMethodCallExpression) { if (canBeReplacedByContains(lhs, rhs, false, expression.getOperationTokenType())) { registerError(expression, expression); } } else if (rhs instanceof PsiMethodCallExpression) { if (canBeReplacedByContains(rhs, lhs, true, expression.getOperationTokenType())) { registerError(expression, expression); } } }