code: private static Node createNewObjectPatternFromSuccessiveKeys(Node stringKey) {
      Node newPattern = stringKey.getParent().cloneNode(); // copies the JSType
      for (Node next = stringKey.getNext(); next != null; ) {
        Node newKey = next;
        next = newKey.getNext();
        newPattern.addChildToBack(newKey.detach());
      }
      return newPattern;
    }
docs: Removes any keys after the given key, and adds them in order to a new object pattern