code: private Node tryFoldComparison(Node n, Node left, Node right) {
      TernaryValue result = evaluateComparison(this, n.getToken(), left, right);
      if (result == TernaryValue.UNKNOWN) {
        return n;
      }
  
      Node newNode = NodeUtil.booleanNode(result.toBoolean(true));
      reportChangeToEnclosingScope(n);
      n.replaceWith(newNode);
      markFunctionsDeleted(n);
  
      return newNode;
    }
docs: Try to fold comparison nodes, e.g ==