salesforce-lib/src/main/java/com/streamsets/pipeline/stage/origin/salesforce/ForceSource.java
private boolean checkConditionExpressions(
      SOQLParser.ConditionExpressionsContext conditionExpressions,
      String fieldName
  ) {
    for (SOQLParser.ConditionExpressionContext ce : conditionExpressions.conditionExpression()) {
      if ((ce.conditionExpressions() != null && checkConditionExpressions(ce.conditionExpressions(), fieldName))
          || (ce.fieldExpression() != null && ce.fieldExpression().fieldElement().getText().equalsIgnoreCase(fieldName))) {
        return true;
      }
    }

    return false;
  }
private boolean checkConditionExpressions(
      SOQLParser.ConditionExpressionsContext conditionExpressions,
      String fieldName
  ) {
    for (SOQLParser.ConditionExpressionContext ce : conditionExpressions.conditionExpression()) {
      if ((ce.conditionExpressions() != null && checkConditionExpressions(ce.conditionExpressions(), fieldName))
          || (ce.fieldExpression() != null && ce.fieldExpression().fieldElement().getText().equalsIgnoreCase(fieldName))) {
        return true;
      }
    }

    return false;
  }
Returns true if any of the nested conditions contains fieldName