boolean (@NotNull PsiElement element) { if (!(element instanceof GrBinaryExpression expression)) { return false; } if (!ComparisonUtils.isComparison(expression)) { return false; } if (expression.getRightOperand() == null) return false; return !ErrorUtil.containsError(element); }