docs: @Requires("isValidPattern(pattern)")
    public boolean isOverriden(String pattern) {
      String canon = pattern.replace('/', '.');
      boolean exact = !canon.endsWith(".*");
      if (exact) {
        return false;
      }
      canon = canon.substring(0, canon.length() - 2);
  
      String[] parts = canon.split("\\.");
      TernaryNode current = root;
      for (int i = 0; i < parts.length; ++i) {
        TernaryNode next = current.children.get(parts[i]);
        if (next == null) {
          return false;
        }
        current = next;
      }
      return !current.children.isEmpty();
    }