private static boolean saveTag(@NotNull File file, @NotNull URLConnection connection, @NotNull String header) throws IOException {
    String tag = connection.getHeaderField(header);
    if (tag != null) {
      String path = file.getAbsolutePath();
      if (!path.endsWith(".json")) path += ".json";
      File tagFile = new File(path + "." + header);
      saveToFile(tagFile, tag);
      return true;
    }
    return false;
  }
private static boolean saveTag(@NotNull File file, @NotNull URLConnection connection, @NotNull String header)