docs: private static Path speculativeFastParsePath(String path) {
          String s = ConfigImplUtil.unicodeTrim(path);
          if (s.isEmpty())
              return null;
          if (hasUnsafeChars(s))
              return null;
          if (s.startsWith(".") || s.endsWith(".") || s.contains(".."))
              return null; // let the full parser throw the error
  
          PathBuilder pb = new PathBuilder();
          appendPathString(pb, s);
          return pb.result();
      }