public void store(@NotNull Properties props, @NotNull String comments, @NotNull Path file) throws Exception {
    if (props.isEmpty()) {
      Files.deleteIfExists(file);
      return;
    }

    try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
      props.store(out, comments);
      Files.createDirectories(file.getParent());
      Files.write(file, encrypt(out.toByteArray()));
    }
  }
public void store(@NotNull Properties props, @NotNull String comments, @NotNull Path file)