public static String normalize(String string, Iterable<PathNormalization> normalizations) {
    String result = string;
    for (PathNormalization normalization : normalizations) {
      result = normalization.apply(result);
    }
    return result;
  }
Applies the given normalizations to the given string in order, returning the normalized result.
jimfs/src/main/java/com/google/common/jimfs/PathNormalization.java