code: public static Path replaceScheme(Path path, String replace, String replacement) {
      return new Path(replaceScheme(path.toUri(), replace, replacement));
    }
docs: Replace the scheme of the input {@link Path} if it matches the string to replace.