docs: public String markAfter(@Nullable Dir dir, String str, boolean isHtml) {
      if (dir == null) {
        dir = estimateDirection(str, isHtml);
      }
      // BidiUtils.getExitDir() is called only if needed (short-circuit).
      if (contextDir == Dir.LTR && (dir == Dir.RTL || BidiUtils.getExitDir(str, isHtml) == Dir.RTL)) {
        return BidiUtils.Format.LRM_STRING;
      }
      if (contextDir == Dir.RTL && (dir == Dir.LTR || BidiUtils.getExitDir(str, isHtml) == Dir.LTR)) {
        return BidiUtils.Format.RLM_STRING;
      }
      return "";
    }