@Nullable
  private static PsiBinaryExpression extractComparison(PsiMethodCallExpression call, boolean isPresent) {
    final PsiMethodCallExpression countCall;
    if (STREAM_FILTER.test(call)) {
      countCall = ExpressionUtils.getCallForQualifier(call);
    } else if (STREAM_COUNT.test(call)) {
      countCall = call;
    } else {
      return null;
    }
    if (countCall == null || hasPeekCallBefore(call)) return null;
    final LongRangeSet range = JavaPsiMathUtil.getRangeFromComparison(countCall);
    if (range == null) return null;
    if ((isPresent && isPresent(range)) || (!isPresent && isEmpty(range))) {
      return extractBinary(countCall);
    }
    return null;
  }
@Nullable
  private static PsiBinaryExpression extractComparison(PsiMethodCallExpression call, boolean isPresent)