public static @NotNull Path createIfNotExists(@NotNull Path path) throws IOException {
    createParentDirectories(path);
    try {
      Files.createFile(path);
    }
    catch (FileAlreadyExistsException e) {
      if (!Files.isRegularFile(path)) {
        throw e;
      }
    }
    return path;
  }
public static @NotNull Path createIfNotExists(@NotNull Path path)