static Map<String, FilePermissions> convertPermissionsMap(Map<String, String> stringMap) {
    // Order is important, so use a LinkedHashMap
    Map<String, FilePermissions> permissionsMap = new LinkedHashMap<>();
    for (Map.Entry<String, String> entry : stringMap.entrySet()) {
      permissionsMap.put(entry.getKey(), FilePermissions.fromOctalString(entry.getValue()));
    }
    return permissionsMap;
  }
Converts a {@code String->String} file-path-to-file-permissions map to an equivalent {@code
String->FilePermission} map.

@param stringMap the map to convert (example entry: {@code "/path/on/container" -> "755"})
@return the converted map
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/TaskCommon.java